137 Commits

Author SHA1 Message Date
Yu Sung
3c6ac1c060 한정판이 Sold Out일 때 구매한 사람도 Sold Out으로 표시되는 버그 수정 2024-03-28 18:16:03 +09:00
Yu Sung
e11e40ff03 privacy 파일 추가 2024-03-28 16:27:43 +09:00
Yu Sung
80e360aa17 라이브
- 팔로우/팔로잉 버튼 변경
2024-03-28 02:11:01 +09:00
Yu Sung
578b9b9089 콘텐츠 상세
- 한정판이 매진된 경우 Player 가운데 Sold Out 표시
2024-03-28 01:36:04 +09:00
Yu Sung
4d73136740 콘텐츠 상세
- 한정판인 경우 대여/소장 선택 다이얼로그를 생략하고 바로 구매확인 다이얼로그가 나오도록 수정
- 한정판이 매진된 경우 구매버튼 비활성화 및 '해당 콘텐츠가 매진되었습니다.' 문구 표시
2024-03-27 19:00:12 +09:00
Yu Sung
5c15e7d52f 콘텐츠 상세
- 한정판 UI 추가
2024-03-27 01:38:27 +09:00
Yu Sung
7b24b50582 라이브 중 전체보기
- 그리드 아이템 사이 간격 수정
2024-03-15 16:45:09 +09:00
Yu Sung
1f35c4585d 지금 라이브 중 - 라이브 아이템 유/무료 표시 방식 수정
- 무료 배경색 : #111111
- 유료 배경색 : #DD4500
- 유료 표시 - white 캔과 함께 100 과 같이 가격으로 변경
2024-03-15 14:30:39 +09:00
Yu Sung
e95d152e45 라이브 게스트
- 본인이 스피커일 때 리스너로 변경하는 버튼 추가
2024-03-15 00:56:49 +09:00
Yu Sung
68cc99c263 시그니처 재생 길이 수정
- 3초에서 7초로 변경
2024-03-15 00:30:51 +09:00
Yu Sung
6070bdc6e0 라이브 만들기
- 비공개 라이브 비밀번호 입력 창 배경색 #222222로 수정
2024-03-11 12:10:22 +09:00
Yu Sung
225747dbe6 스플래시 화면 변경 2024-03-08 21:05:05 +09:00
Yu Sung
70460f5c8a 라이브 정보 수정
- 메뉴판 수정 기능 추가
2024-03-08 20:40:29 +09:00
Yu Sung
b6411c3ccb 라이브
- 메뉴판 UI 추가
2024-03-08 16:58:00 +09:00
Yu Sung
aa4171b095 스플래시 화면 변경 2024-03-08 04:35:37 +09:00
Yu Sung
95ba74b862 시그니처 후원 이미지 표시
- 이미지 URL을 배열에 저장 후 순서대로 표시하도록 수정
2024-03-08 02:44:33 +09:00
Yu Sung
86d4bc1c1e 후원
- 시그니처 후원 적용
2024-03-08 01:38:27 +09:00
Yu Sung
367be74279 룰렛 설정 개수에 따라 룰렛 프리셋 버튼 활성화/비활성화 2024-02-28 03:22:42 +09:00
Yu Sung
bb64adc684 룰렛 설정 문구 수정 2024-02-28 03:06:00 +09:00
Yu Sung
3a102674e9 커뮤니티 댓글, 콘텐츠 댓글, 팬토크
- 여러줄 인 경우 줄간격 수정
2024-02-28 02:27:47 +09:00
Yu Sung
91504bbda9 idfa 업데이트 추가 2024-02-27 01:10:32 +09:00
Yu Sung
68ac0a4e76 숏플, 라이브 다시듣기 버튼 크기 수정 2024-02-24 23:57:59 +09:00
Yu Sung
bc11519120 커뮤니티 댓글, 콘텐츠 댓글, 팬토크
- 글자 크기, 색상 수정
2024-02-24 23:49:50 +09:00
Yu Sung
0584b17b76 룰렛 프리셋 설정 성공 메시지 수정 2024-02-24 03:57:45 +09:00
Yu Sung
fec66fea56 룰렛 프리셋 적용 2024-02-24 02:04:50 +09:00
Yu Sung
2359257005 튜토리얼 이미지 변경 2024-02-16 14:40:02 +09:00
Yu Sung
d16c56fef8 콘텐츠 그리드 리스트
- 아이템 간격 32로 수정
2024-02-15 02:31:02 +09:00
Yu Sung
a07e87b9c8 콘텐츠 그리드 리스트
- 아이템 상하 간격 16으로 변경
2024-02-15 01:10:11 +09:00
Yu Sung
a5eaf7c6ac 스플래시 변경 2024-02-15 00:55:01 +09:00
Yu Sung
57e2de3a48 튜토리얼 이미지 순서 변경 2024-02-15 00:52:33 +09:00
Yu Sung
dc73d6e89c 콘텐츠 메인 숏플, 라이브 다시 듣기 버튼 수정
- 부가 설명 제거
- 버튼 배경 이미지로 변경
- 글자 크기 14.7 -> 16.7로 변경
- 아이콘 큰 사이즈로 변경
2024-02-15 00:50:57 +09:00
Yu Sung
97f703cb22 튜토리얼 수정 2024-02-15 00:34:29 +09:00
Yu Sung
27b87c9cbe 라이브 상세
- 크리에이터는 예약자(참여자) 표시
2024-02-14 17:02:22 +09:00
Yu Sung
20cce36c16 콘텐츠 리스트 - 가격, 시간 추가 2024-02-14 16:11:06 +09:00
Yu Sung
7d0c472885 콘텐츠 메인 - 숏플, 라이브 다시 듣기 추가 2024-02-14 15:49:13 +09:00
Yu Sung
c787027dcc 큐레이션, 새로운 콘텐츠 - 아이템 개수 2개에서 3개로 변경 2024-02-14 12:56:16 +09:00
Yu Sung
62904d96b1 콘텐츠 전체보기
- 카테고리 추가
2024-02-07 15:09:48 +09:00
Yu Sung
638d00ffc3 설정페이지
- 회사정보 추가
2024-02-05 22:14:32 +09:00
Yu Sung
5fe41f8db3 콘텐츠 고정 팝업
- 사라지지 않는 버그 수정
2024-01-29 17:40:22 +09:00
Yu Sung
6aaf383013 콘텐츠 상세
- 미리듣기가 없을 떄 문구 추가
2024-01-29 16:23:51 +09:00
Yu Sung
708cef356b 콘텐츠 제목 - 2줄 이상인 경우 왼쪽정렬 2024-01-29 15:59:37 +09:00
Yu Sung
8f62c17971 크리에이터 콘텐츠 리스트 - 고정 콘텐츠 핀 추가 2024-01-29 15:28:03 +09:00
Yu Sung
12d2c09434 콘텐츠 상세 - 콘텐츠 고정/해제 기능 추가 2024-01-29 15:22:45 +09:00
Yu Sung
bd818918f3 콘텐츠 상세
- 미리듣기 없는 콘텐츠는 재생 버튼이 보이지 않도록 수정
2024-01-26 13:36:46 +09:00
Yu Sung
aa87f0367b 인기 콘텐츠 카테고리 뱃지 - stroke 색상 변경 2024-01-26 12:59:08 +09:00
Yu Sung
34f2348aa0 콘텐츠 업로드
- 미리듣기 여부 선택 버튼 추가
2024-01-26 10:57:57 +09:00
Yu Sung
31bd137f4d 유료방 입장 팝업 - UI 수정, 알림 문구 수정 2024-01-22 19:19:47 +09:00
Yu Sung
ac49b4e2ad 유료라이브 입장 안내 팝업 수정 - 라이브 시작 시각과 현재 시각 표시 2024-01-22 03:18:00 +09:00
Yu Sung
9c049550af 커뮤니티 글 - 줄 간격 0 -> 8 로 변경 2024-01-19 16:16:26 +09:00
Yu Sung
5437cb07aa 라이브 배경이미지 - 가운데 정렬 2024-01-18 18:45:54 +09:00
Yu Sung
a1f9d0d29c 라이브 - 배경이미지 상단정렬 2024-01-18 18:20:28 +09:00
Yu Sung
6c152650a1 커뮤니티 게시글 - 링크적용 2024-01-18 18:03:17 +09:00
Yu Sung
01833fbc1f 라이브 UI 변경 2024-01-18 17:32:14 +09:00
Yu Sung
7ce5a36172 프로필 이미지 변경 - 이미지 변경시 로컬에 저장된 프로필 이미지 URL도 변경 하도록 수정 2024-01-17 04:24:26 +09:00
Yu Sung
e8522ab755 콘텐츠 상세
- 오픈 예정 날짜 데이터가 있더라도 콘텐츠를 올린 크리에이터의 경우 재생버튼이 동작하도록 수정
2024-01-11 01:32:31 +09:00
Yu Sung
c1e598a8bf 예약 업로드 추가 2024-01-10 17:08:22 +09:00
Yu Sung
a27952bbca 새로운 콘텐츠 등록하기 버튼 배경색 3bb9f1로 변경 2024-01-10 02:58:16 +09:00
Yu Sung
679783cc35 크리에이터 채널, 콘텐츠 상세 - 오픈예정 추가 2024-01-10 02:55:00 +09:00
Yu Sung
a836215d37 메인페이지, 팝업 다이얼로그 - 기본색상 9970ff -> 3bb9f1로 변경 2024-01-09 19:32:33 +09:00
Yu Sung
bfcc430349 지금 라이브 중 전체보기 - 당겨서 새로고침이 되지 않던 버그 수정 2024-01-04 16:16:04 +09:00
Yu Sung
3387a1b369 쿠폰등록 페이지 추가 2024-01-03 17:43:20 +09:00
Yu Sung
8857dd3e98 마이페이지 - 글자색, 배경색 변경 2024-01-03 13:05:02 +09:00
Yu Sung
86491cce95 메인 하단 탭 - 아이콘 색상, 글자 색상 변경 2024-01-03 12:54:49 +09:00
Yu Sung
5fcf4c03c0 콘텐츠 업로드 크리에이터
- LazyHStack -> HStack으로 변경하여 과도한 간격 제거
2024-01-02 19:47:55 +09:00
Yu Sung
60457d987e 팬 Talk 응원 글 길면 잘리는 버그 수정 2024-01-02 19:20:35 +09:00
Yu Sung
86bbb281c8 라이브 - 커버이미지 수정방식 변경
AS-IS : 방 정보를 가져올 때 마다 변경
TO-BE : 이전 이미지 url과 다른 경우 에만 커버이미지 변경
2024-01-02 18:44:26 +09:00
Yu Sung
735796a970 콘텐츠 메인 LazyVStack에서 VStack으로 변경
AS-IS : LazyVStack을 사용하여 화면에 보이는 영역만 그렸었다.
TO-BE : VStack을 사용하여 새로 화면이 그려지면서 튀는 현상을 제거하였다. ( 하지만 화면에 안보이는 부분이 그려져 있어서 메모리를 많이 차지 한다. )
2023-12-27 14:50:17 +09:00
Yu Sung
b2a20969b8 새로운 콘텐츠 전체보기 테마영역, 인기 콘텐츠 전체 보기 정렬영역 높이 수정
AS-IS : LazyHStack을 사용해서 화면 전체영역만큼 차지함
TO-BE : HStack으로 변경 - 내용이 얼마 되지 않으므로 성능 차이가 나지 않는다.
2023-12-27 14:45:34 +09:00
Yu Sung
a66f76f9a6 라이브중 이미지 정렬 수정
AS-IS : 상단 정렬
TO-BE : 가운데 정렬
2023-12-27 00:33:09 +09:00
Yu Sung
1c09f6a055 라이브 채팅 폰트 사이즈
AS-IS : 14sp
TO-BE : 15sp
2023-12-27 00:23:28 +09:00
Yu Sung
9a74567643 . 2023-12-26 22:31:33 +09:00
Yu Sung
fe41360f91 라이브 룰렛 색상 변경
AS-IS : 10가지 색상 순서 대로 표시
TO-BE : 10가지 색상 중 랜덤 으로 표시
2023-12-26 22:25:44 +09:00
Yu Sung
55d35222a9 라이브 채팅 폰트
AS-IS : Gmarket Sans
TO-BE : System Font
2023-12-26 22:22:06 +09:00
Yu Sung
e43e485154 라이브 룰렛 색상 수정
AS-IS : -
TO-BE : -
2023-12-26 19:18:58 +09:00
Yu Sung
1bdb6fd917 스플래시 페이지 수정
AS-IS : 크리스마스 이미지
TO-BE : 신년 이미지
2023-12-26 17:49:05 +09:00
Yu Sung
208fc77b7f 룰렛 최대 개수 수정
AS-IS : 최대 6개
TO-BE : 최대 10개

룰렛 확률 수정
AS-IS : 소수점 없음
TO-BE : 소수점 2자리
2023-12-26 15:56:04 +09:00
Yu Sung
f4bd1c4487 라이브 새로고침 - 이전과 동일하게 전체로 수정 2023-12-26 00:50:41 +09:00
Yu Sung
15421ca4d5 라이브 탭 새로고침 방법 변경 - 당겨서 새로고침 -> 지금 라이브 중 옆 새로고침 버튼으로 변경 2023-12-22 03:34:38 +09:00
Yu Sung
ceef432695 애니메이션 제거 코드 삭제 2023-12-22 02:59:01 +09:00
Yu Sung
a17dacc900 라이브가 없을 때 문구 변경 2023-12-22 02:16:22 +09:00
Yu Sung
c1679acff9 채널에서 커뮤니티 아이템 터치하면 커뮤니티 전체보기 페이지로 이동 2023-12-22 01:59:01 +09:00
Yu Sung
0de3cf55a7 라이브 메인 - 애니메이션 제거 2023-12-22 01:49:30 +09:00
Yu Sung
89c552a341 지금 라이브 중 전체보기 - 아이템 사이 간격 추가 2023-12-22 01:37:33 +09:00
Yu Sung
be1d70a835 지금 라이브 중 - 현재 입장되어 있는 인원 UI 제거 2023-12-22 01:07:07 +09:00
Yu Sung
623640d410 크리에이터 커뮤니티 댓글이 써지지 않던 버그 수정 2023-12-22 00:58:11 +09:00
Yu Sung
d53392ddcd 지금 라이브 중 - 상단 정렬로 수정 2023-12-22 00:04:55 +09:00
Yu Sung
85044d901f 댓글 추가 불가능 한 포스트의 경우 댓글 영역이 보이지 않도록 수정 2023-12-21 23:58:44 +09:00
Yu Sung
acdacbfb7b 메인 라이브 탭 - 커뮤니티 포스트 영역 추가 2023-12-21 23:46:22 +09:00
Yu Sung
7bd32f8486 커뮤니티 수정 UI, API 추가 2023-12-21 21:04:08 +09:00
Yu Sung
f40642f90f 커뮤니티 게시물 삭제 API 적용 2023-12-21 00:38:30 +09:00
Yu Sung
9f360e9fcd 커뮤니티 게시물 신고 하기 추가 2023-12-20 23:27:23 +09:00
Yu Sung
302f69b265 커뮤니티 댓글
- 수정 / 삭제 API 적용
2023-12-20 21:31:31 +09:00
Yu Sung
cb3a564a29 커뮤니티 댓글, 답글 추가 APi 적용 2023-12-20 21:17:24 +09:00
Yu Sung
02764f5fe8 커뮤니티 게시물 전체보기, 좋아요, 댓글 추가 API 적용 2023-12-20 14:28:20 +09:00
Yu Sung
28b64ba8a8 크리에이터 커뮤니티 게시물
- 이미지가 없어도 등록할 수 있도록 수정
- 유효성 검사 추가
- 크리에이터 채널 - 게시물 높이가 같을 수 있도록 이미지가 없으면 Rectangle 추가
2023-12-20 00:39:29 +09:00
Yu Sung
d829399b05 커뮤니티 게시물 등록 API 적용,
채널 프로필 API - 커뮤니티 게시물 추가
2023-12-20 00:10:16 +09:00
Yu Sung
d393bb8f8b 커뮤니티 게시물 신고 UI 추가 2023-12-16 03:24:07 +09:00
Yu Sung
e2e64fa4e6 크리에이터 커뮤니티 등록 UI 추가 2023-12-16 01:56:59 +09:00
Yu Sung
a7f8fa5dc5 패키지 폴더명 변경 2023-12-15 19:25:55 +09:00
Yu Sung
650b6808e6 크리에이터 커뮤니티 페이지 추가 2023-12-15 19:14:03 +09:00
Yu Sung
b8fbb664d5 크리에이터 채널 - 함께 들으면 좋은 채널 제거 2023-12-15 16:49:18 +09:00
Yu Sung
c84f1042e3 크리에이터 채널 - 크리에이터 커뮤니티 영역 추가 2023-12-15 00:25:13 +09:00
Yu Sung
7d34a4e27a 라이브 방 - 최상단 VStack을 LazyVStack으로 변경하여 버튼이 안눌리던 버그 수정 2023-12-14 18:51:38 +09:00
Yu Sung
e5af4167f8 라이브 탭 - 라이브 중 아이템 UI 변경 2023-12-14 18:35:43 +09:00
Yu Sung
e782f72179 콘텐츠 메인 - 새로운 콘텐츠 테마 새로고침 할 때 마다 중복으로 늘어나던 버그 수정 2023-12-14 18:10:47 +09:00
Yu Sung
4bc3ecd0fb 콘텐츠 메인 인기 콘텐츠 - 타입을 바꾸면 데이터가 삭제 되고 바뀐 타입의 데이터 만 나오도록 수정 2023-12-12 18:11:33 +09:00
Yu Sung
6fecd27954 룰렛 아이템 랜덤 선택 로직 수정 2023-12-12 01:26:30 +09:00
Yu Sung
0c116fb700 콘텐츠 메인 - 새로운 콘텐츠, 콘텐츠 랭킹 의 HStack -> LazyHStack으로 변경 2023-12-11 21:47:59 +09:00
Yu Sung
c09920942c 콘텐츠 메인 - Api 분리 2023-12-11 20:01:26 +09:00
Yu Sung
77a145d61c 강제업데이트 다이얼로그 추가 2023-12-07 13:16:03 +09:00
Yu Sung
694ef2b0a4 스플래시 - 크리스마스 로고 변경 2023-12-07 12:56:04 +09:00
Yu Sung
854bce08cd 룰렛 설정 - 배경 터치시 키보드 내리기 2023-12-07 12:53:38 +09:00
Yu Sung
6d27ca8087 룰렛 설정 - 키보드 높이에 따라 스크롤 늘리도록 수정 2023-12-07 12:17:16 +09:00
Yu Sung
3897976a2b 라이브 - 팝업 내용에 룰렛이 있으면 왼쪽 아이콘을 룰렛아이콘으로 변경 2023-12-07 11:54:52 +09:00
Yu Sung
da1686bb34 다른 사람의 룰렛 결과 표시 2023-12-07 11:51:19 +09:00
Yu Sung
160888c5f4 룰렛 설정 - 키보드 높이 만큼 상단으로 하단 영역 추가 2023-12-07 11:44:21 +09:00
Yu Sung
7ab21a1dd8 룰렛 설정 - 설정된 적이 없을 때 기본 캔 설정 5 -> 0으로 변경 2023-12-07 11:06:33 +09:00
Yu Sung
13c212a56e 스플래시 - 크리스마스 버전으로 변경 2023-12-07 09:50:13 +09:00
Yu Sung
d52f0d1176 룰렛 뷰 추가 2023-12-07 08:48:03 +09:00
Yu Sung
0af16ac000 - 룰렛 돌리기 API 연동
- 룰렛 돌린 결과 전송
2023-12-07 04:29:03 +09:00
Yu Sung
5682adf967 라이브 - 크리에이터가 룰렛 설정 시 룰렛 버튼 활성화 / 비활성화 2023-12-06 23:34:48 +09:00
Yu Sung
2e8258a977 - 룰렛 설정 완료 API 적용
- 룰렛 설정 완료 시 신호전송
2023-12-06 23:24:33 +09:00
Yu Sung
a22e2e7a51 룰렛 프리뷰 다이얼로그 추가 2023-12-06 21:18:57 +09:00
Yu Sung
ff7144f708 룰렛 설정 다이얼로그 뷰 추가 2023-12-06 16:43:41 +09:00
Yu Sung
9622e9b55d 라이브 룰렛
- 룰렛 설정 아이콘 추가
- 룰렛 돌리기 아이콘 추가
2023-12-05 12:48:50 +09:00
Yu Sung
4de4f997e6 라이브 프로필 다이얼로그 - 팔로잉 버튼 위치 변경 2023-11-24 22:08:09 +09:00
Yu Sung
ebfecb0ad4 콘텐츠 상세페이지 이동 방식 수정
- NavigationView 적용
- 뒤로가기 시 리스트를 다시 로딩하여 스크롤이 최상단으로 이동하지 않도록 수정
2023-11-22 23:07:10 +09:00
Yu Sung
823bd8e92d 라이브 - 방장이 아닌 사용자가 유저 차단 시 라이브에서 강퇴되는 버그 수정 2023-11-21 14:20:01 +09:00
Yu Sung
6cbd4edacc 콘텐츠 랭킹 전체보기 - 추가 로딩을 하지 않던 버그 수정 2023-11-20 20:39:56 +09:00
Yu Sung
8821ce5f1f 회원가입 - 닉네임 입력 필드와 프로필 사진 등록 사이 간격 수정 2023-11-20 20:21:01 +09:00
Yu Sung
39f84ceadf 프로필 수정 페이지 - sns, 소개, 태그 수정 UI 크리에이터만 보이도록 수정 2023-11-20 19:51:16 +09:00
Yu Sung
cab41ee6c7 콘텐츠 후원 배경색 - 기존 캔 수 / 10 으로 조정 2023-11-20 15:41:31 +09:00
Yu Sung
3c4b1a7098 라이브 후원 배경색 - 기존 캔 수 / 10 으로 조정 2023-11-20 15:32:17 +09:00
Yu Sung
16af9dbacd 라이브 - 유저 프로필 다이얼로그 의 메시지 보내기 버튼 제거 2023-11-18 00:49:58 +09:00
Yu Sung
aa676581d3 라이브 - 공지 영역 너비가 넘어가는 현상 수정 2023-11-18 00:39:24 +09:00
Yu Sung
0e0d7a3c24 토큰 만료를 처리하기 위해 확장함수 추가 2023-11-17 17:22:09 +09:00
Yu Sung
e98847179a 라이브 상세 - 날짜 포맷 yyyy년 MM월 dd일 (E) a hh시 mm분 로 수정 2023-11-14 12:50:16 +09:00
315 changed files with 11763 additions and 3307 deletions

View File

@@ -51,4 +51,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: cdff30c96e85662f4de75ddd8d54358311c1e629
COCOAPODS: 1.12.1
COCOAPODS: 1.14.3

View File

@@ -36,13 +36,22 @@
"version" : "5.7.1"
}
},
{
"identity" : "app-check",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/app-check.git",
"state" : {
"revision" : "3e464dad87dad2d29bb29a97836789bf0f8f67d2",
"version" : "10.18.1"
}
},
{
"identity" : "firebase-ios-sdk",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/firebase-ios-sdk.git",
"state" : {
"revision" : "df2171b0c6afb9e9d4f7e07669d558c510b9f6be",
"version" : "10.13.0"
"revision" : "be49849dcba96f2b5ee550d4eceb2c0fa27dade4",
"version" : "10.22.1"
}
},
{
@@ -50,8 +59,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleAppMeasurement.git",
"state" : {
"revision" : "03b9beee1a61f62d32c521e172e192a1663a5e8b",
"version" : "10.13.0"
"revision" : "482cfa4e5880f0a29f66ecfd60c5a62af28bd1f0",
"version" : "10.22.1"
}
},
{
@@ -59,8 +68,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleDataTransport.git",
"state" : {
"revision" : "aae45a320fd0d11811820335b1eabc8753902a40",
"version" : "9.2.5"
"revision" : "a637d318ae7ae246b02d7305121275bc75ed5565",
"version" : "9.4.0"
}
},
{
@@ -68,8 +77,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleUtilities.git",
"state" : {
"revision" : "c38ce365d77b04a9a300c31061c5227589e5597b",
"version" : "7.11.5"
"revision" : "26c898aed8bed13b8a63057ee26500abbbcb8d55",
"version" : "7.13.1"
}
},
{
@@ -77,8 +86,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/grpc-binary.git",
"state" : {
"revision" : "f1b366129d1125be7db83247e003fc333104b569",
"version" : "1.50.2"
"revision" : "a673bc2937fbe886dd1f99c401b01b6d977a9c98",
"version" : "1.49.1"
}
},
{
@@ -90,6 +99,15 @@
"version" : "3.1.1"
}
},
{
"identity" : "interop-ios-for-google-sdks",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/interop-ios-for-google-sdks.git",
"state" : {
"revision" : "2d12673670417654f08f5f90fdd62926dc3a2648",
"version" : "100.0.0"
}
},
{
"identity" : "kingfisher",
"kind" : "remoteSourceControl",
@@ -180,6 +198,24 @@
"version" : "6.6.0"
}
},
{
"identity" : "sdwebimage",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SDWebImage/SDWebImage.git",
"state" : {
"revision" : "59730af512c06fb569c119d737df4c1c499e001d",
"version" : "5.18.10"
}
},
{
"identity" : "sdwebimageswiftui",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SDWebImage/SDWebImageSwiftUI.git",
"state" : {
"revision" : "261b6cec35686d2dc192b809ab50742b4502a73b",
"version" : "2.2.6"
}
},
{
"identity" : "swift-protobuf",
"kind" : "remoteSourceControl",

View File

@@ -9,7 +9,7 @@
"scale" : "2x"
},
{
"filename" : "splash_logo.png",
"filename" : "btn_add.png",
"idiom" : "universal",
"scale" : "3x"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "btn_follow_big.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "btn_following_big.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "btn_minus_round_rect.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -1,21 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "btn_notification_selected.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "btn_plus_round_rect.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_can_white.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

View File

@@ -9,7 +9,7 @@
"scale" : "2x"
},
{
"filename" : "btn_notification.png",
"filename" : "ic_card_can_gray.png",
"idiom" : "universal",
"scale" : "3x"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_card_time_small_gray.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 543 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -9,7 +9,7 @@
"scale" : "2x"
},
{
"filename" : "img_guide_5.png",
"filename" : "ic_coupon.png",
"idiom" : "universal",
"scale" : "3x"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 634 B

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -9,7 +9,7 @@
"scale" : "2x"
},
{
"filename" : "splash_text.png",
"filename" : "ic_logo2.png",
"idiom" : "universal",
"scale" : "3x"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_notice_triangle.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

View File

@@ -9,7 +9,7 @@
"scale" : "2x"
},
{
"filename" : "img_guide_6.png",
"filename" : "ic_pin.png",
"idiom" : "universal",
"scale" : "3x"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -9,7 +9,7 @@
"scale" : "2x"
},
{
"filename" : "splash_bubble.png",
"filename" : "ic_pin_cancel.png",
"idiom" : "universal",
"scale" : "3x"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_refresh.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 886 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_roulette.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_roulette_settings.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_short_play.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_thumb_play_blue.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_trash_can.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 787 B

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "img_bg_review_live.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "img_bg_short_play.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "img_sample.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 772 KiB

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 KiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 617 KiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 678 KiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 531 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "splash_bg_2024_03.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "splash_text_2024_03.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "splash_text_logo_2024_03.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@@ -1,21 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "vividnext_logo.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 998 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 925 B

After

Width:  |  Height:  |  Size: 987 B

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
</dict>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
</dict>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>35F9.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
</dict>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>E174.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
</dict>
</array>
</dict>
</plist>

View File

@@ -72,8 +72,6 @@ enum AppStep {
case userProfileFanTalkAll(userId: Int)
case creatorNoticeWrite(notice: String)
case createLive(
timeSettingMode: LiveRoomCreateViewModel.TimeSettingMode,
onSuccess: (CreateLiveRoomResponse) -> Void
@@ -113,4 +111,14 @@ enum AppStep {
case curationAll(title: String, curationId: Int)
case contentRankingAll
case creatorCommunityAll(creatorId: Int)
case creatorCommunityWrite(onSuccess: () -> Void)
case creatorCommunityModify(postId: Int, onSuccess: () -> Void)
case canCoupon
case contentAllByTheme(themeId: Int)
}

View File

@@ -0,0 +1,111 @@
//
// ContentAllByThemeView.swift
// SodaLive
//
// Created by klaus on 2/14/24.
//
import SwiftUI
struct ContentAllByThemeView: View {
@StateObject var viewModel = ContentAllByThemeViewModel()
let themeId: Int
let columns = [
GridItem(.flexible(), alignment: .top),
GridItem(.flexible(), alignment: .top),
GridItem(.flexible(), alignment: .top)
]
var body: some View {
NavigationView {
BaseView(isLoading: $viewModel.isLoading) {
VStack(alignment: .leading, spacing: 0) {
DetailNavigationBar(title: viewModel.theme)
HStack(spacing: 13.3) {
Spacer()
Text("최신순")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(
Color(hex: "e2e2e2")
.opacity(viewModel.sort == .NEWEST ? 1 : 0.5)
)
.onTapGesture {
if viewModel.sort != .NEWEST {
viewModel.sort = .NEWEST
}
}
Text("높은 가격순")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(
Color(hex: "e2e2e2")
.opacity(viewModel.sort == .PRICE_HIGH ? 1 : 0.5)
)
.onTapGesture {
if viewModel.sort != .PRICE_HIGH {
viewModel.sort = .PRICE_HIGH
}
}
Text("낮은 가격순")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(
Color(hex: "e2e2e2")
.opacity(viewModel.sort == .PRICE_LOW ? 1 : 0.5)
)
.onTapGesture {
if viewModel.sort != .PRICE_LOW {
viewModel.sort = .PRICE_LOW
}
}
}
.padding(.vertical, 13.3)
.padding(.horizontal, 20)
.background(Color(hex: "161616"))
.padding(.top, 13.3)
HStack(spacing: 0) {
Text("전체")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "e2e2e2"))
Text("\(viewModel.totalCount)")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "ff5c49"))
.padding(.leading, 8)
Text("")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "e2e2e2"))
.padding(.leading, 2)
Spacer()
}
.padding(.vertical, 13.3)
.padding(.horizontal, 20)
ScrollView(.vertical, showsIndicators: false) {
LazyVGrid(columns: columns, spacing: 32) {
ForEach(0..<viewModel.contentList.count, id: \.self) { index in
ContentNewAllItemView(item: viewModel.contentList[index])
.onAppear {
if index == viewModel.contentList.count - 1 {
viewModel.getContentList()
}
}
}
}
}
}
.onAppear {
viewModel.themeId = themeId
viewModel.getContentList()
}
}
}
}
}

View File

@@ -0,0 +1,96 @@
//
// ContentAllByThemeViewModel.swift
// SodaLive
//
// Created by klaus on 2/14/24.
//
import Foundation
import Combine
final class ContentAllByThemeViewModel: ObservableObject {
enum Sort: String {
case NEWEST, PRICE_HIGH, PRICE_LOW
}
private let repository = ContentRepository()
private var subscription = Set<AnyCancellable>()
@Published var errorMessage = ""
@Published var isShowPopup = false
@Published var isLoading = false
@Published var theme = ""
@Published var totalCount = 0
@Published var sort = Sort.NEWEST {
didSet {
page = 1
isLast = false
getContentList()
}
}
@Published var contentList: [GetAudioContentMainItem] = []
var themeId = 0
var page = 1
var isLast = false
private let pageSize = 10
func getContentList() {
if (!isLast && !isLoading) {
isLoading = true
repository.getAudioContentByTheme(
themeId: themeId,
page: page,
size: pageSize,
sort: sort
)
.sink { result in
switch result {
case .finished:
DEBUG_LOG("finish")
case .failure(let error):
ERROR_LOG(error.localizedDescription)
}
} receiveValue: { [unowned self] response in
let responseData = response.data
do {
let jsonDecoder = JSONDecoder()
let decoded = try jsonDecoder.decode(ApiResponse<GetContentByThemeResponse>.self, from: responseData)
if let data = decoded.data, decoded.success {
if page == 1 {
self.contentList.removeAll()
}
if !data.items.isEmpty {
page += 1
self.theme = data.theme
self.totalCount = data.totalCount
self.contentList.append(contentsOf: data.items)
} else {
isLast = true
}
} else {
if let message = decoded.message {
self.errorMessage = message
} else {
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
}
self.isShowPopup = true
}
} catch {
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
self.isShowPopup = true
}
self.isLoading = false
}
.store(in: &subscription)
}
}
}

View File

@@ -0,0 +1,14 @@
//
// GetContentByThemeResponse.swift
// SodaLive
//
// Created by klaus on 2/14/24.
//
import Foundation
struct GetContentByThemeResponse: Decodable {
let theme: String
let totalCount: Int
let items: [GetAudioContentMainItem]
}

View File

@@ -15,40 +15,84 @@ struct ContentNewAllItemView: View {
@State var width: CGFloat = 0
var body: some View {
VStack(alignment: .leading, spacing: 8) {
KFImage(URL(string: item.coverImageUrl))
.resizable()
.scaledToFill()
.frame(width: width, height: width, alignment: .top)
.cornerRadius(2.7)
Text(item.title)
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "d2d2d2"))
.frame(width: width, alignment: .leading)
.multilineTextAlignment(.leading)
.fixedSize(horizontal: false, vertical: true)
.lineLimit(2)
HStack(spacing: 5.3) {
KFImage(URL(string: item.creatorProfileImageUrl))
.resizable()
.scaledToFill()
.frame(width: 21.3, height: 21.3)
.clipShape(Circle())
.onTapGesture { AppState.shared.setAppStep(step: .creatorDetail(userId: item.creatorId)) }
NavigationLink {
ContentDetailView(contentId: item.contentId)
} label: {
VStack(alignment: .leading, spacing: 8) {
ZStack(alignment: .bottom) {
KFImage(URL(string: item.coverImageUrl))
.resizable()
.scaledToFill()
.frame(width: width, height: width, alignment: .top)
.cornerRadius(2.7)
VStack(spacing: 0) {
Spacer()
HStack(spacing: 0) {
HStack(spacing: 2) {
if item.price > 0 {
Image("ic_card_can_gray")
Text("\(item.price)")
.font(.custom(Font.medium.rawValue, size: 8.5))
.foregroundColor(Color.white)
} else {
Text("무료")
.font(.custom(Font.medium.rawValue, size: 8.5))
.foregroundColor(Color.white)
}
}
.padding(3)
.background(Color(hex: "333333").opacity(0.7))
.cornerRadius(10)
.padding(.leading, 2.7)
.padding(.bottom, 2.7)
Spacer()
HStack(spacing: 2) {
Text(item.duration)
.font(.custom(Font.medium.rawValue, size: 8.5))
.foregroundColor(Color.white)
}
.padding(3)
.background(Color(hex: "333333").opacity(0.7))
.cornerRadius(10)
.padding(.trailing, 2.7)
.padding(.bottom, 2.7)
}
}
}
.frame(width: width, height: width)
Text(item.creatorNickname)
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "777777"))
.lineLimit(1)
Text(item.title)
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "d2d2d2"))
.frame(width: width, alignment: .leading)
.multilineTextAlignment(.leading)
.fixedSize(horizontal: false, vertical: true)
.lineLimit(2)
HStack(spacing: 5.3) {
KFImage(URL(string: item.creatorProfileImageUrl))
.resizable()
.scaledToFill()
.frame(width: 21.3, height: 21.3)
.clipShape(Circle())
.onTapGesture { AppState.shared.setAppStep(step: .creatorDetail(userId: item.creatorId)) }
Text(item.creatorNickname)
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "777777"))
.lineLimit(1)
}
.padding(.bottom, 10)
}
.frame(width: width)
.onAppear {
width = (screenSize().width - 42) / 3
}
.padding(.bottom, 10)
}
.frame(width: width)
.onTapGesture { AppState.shared.setAppStep(step: .contentDetail(contentId: item.contentId)) }
.onAppear {
width = (screenSize().width - 40) / 2
}
}
}

View File

@@ -12,68 +12,69 @@ struct ContentNewAllView: View {
@StateObject var viewModel = ContentNewAllViewModel()
let columns = [
GridItem(.flexible(), alignment: .top),
GridItem(.flexible(), alignment: .top),
GridItem(.flexible(), alignment: .top)
]
var body: some View {
BaseView(isLoading: $viewModel.isLoading) {
VStack(spacing: 0) {
DetailNavigationBar(title: "새로운 콘텐츠")
Text("※ 최근 2주간 등록된 새로운 콘텐츠 입니다.")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: "bbbbbb"))
.padding(.horizontal, 13.3)
.padding(.vertical, 8)
.frame(width: screenSize().width, alignment: .leading)
.background(Color(hex: "222222"))
.padding(.top, 13.3)
ContentMainNewContentThemeView(
themes: viewModel.themeList,
selectTheme: {
viewModel.selectedTheme = $0
},
selectedTheme: $viewModel.selectedTheme
).padding(.top, 13.3)
HStack(spacing: 0) {
Text("전체")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "e2e2e2"))
NavigationView {
BaseView(isLoading: $viewModel.isLoading) {
VStack(alignment: .leading, spacing: 0) {
DetailNavigationBar(title: "새로운 콘텐츠")
Text("\(viewModel.totalCount)")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "ff5c49"))
.padding(.leading, 8)
Text("※ 최근 2주간 등록된 새로운 콘텐츠 입니다.")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: "bbbbbb"))
.padding(.horizontal, 13.3)
.padding(.vertical, 8)
.frame(width: screenSize().width, alignment: .leading)
.background(Color(hex: "222222"))
.padding(.top, 13.3)
Text("")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "e2e2e2"))
.padding(.leading, 2)
ContentMainNewContentThemeView(
themes: viewModel.themeList,
selectTheme: {
viewModel.selectedTheme = $0
},
selectedTheme: $viewModel.selectedTheme
).padding(.top, 13.3)
Spacer()
}
.padding(.vertical, 13.3)
.padding(.horizontal, 20)
ScrollView(.vertical, showsIndicators: false) {
LazyVGrid(columns: columns, spacing: 13.3) {
ForEach(0..<viewModel.newContentList.count, id: \.self) { index in
ContentNewAllItemView(item: viewModel.newContentList[index])
.onAppear {
if index == viewModel.newContentList.count - 1 {
viewModel.getNewContentList()
HStack(spacing: 0) {
Text("전체")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "e2e2e2"))
Text("\(viewModel.totalCount)")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "ff5c49"))
.padding(.leading, 8)
Text("")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "e2e2e2"))
.padding(.leading, 2)
}
.padding(.vertical, 13.3)
.padding(.horizontal, 20)
ScrollView(.vertical, showsIndicators: false) {
LazyVGrid(columns: columns, spacing: 32) {
ForEach(0..<viewModel.newContentList.count, id: \.self) { index in
ContentNewAllItemView(item: viewModel.newContentList[index])
.onAppear {
if index == viewModel.newContentList.count - 1 {
viewModel.getNewContentList()
}
}
}
}
}
}
}
}
.onAppear {
viewModel.getThemeList()
viewModel.getNewContentList()
.onAppear {
viewModel.getThemeList()
viewModel.getNewContentList()
}
}
}
}

View File

@@ -13,144 +13,145 @@ struct ContentRankingAllView: View {
@StateObject var viewModel = ContentRankingAllViewModel()
var body: some View {
BaseView(isLoading: $viewModel.isLoading) {
VStack(spacing: 0) {
DetailNavigationBar(title: "인기 콘텐츠")
VStack(spacing: 8) {
Text("\(viewModel.dateString)")
.font(.custom(Font.bold.rawValue, size: 14.7))
.foregroundColor(Color(hex: "eeeeee"))
NavigationView {
BaseView(isLoading: $viewModel.isLoading) {
VStack(spacing: 0) {
DetailNavigationBar(title: "인기 콘텐츠")
Text("※ 인기 콘텐츠의 순위는 매주 업데이트됩니다.")
.font(.custom(Font.light.rawValue, size: 13.3))
.foregroundColor(Color(hex: "bbbbbb"))
}
.padding(.vertical, 8)
.frame(width: screenSize().width - 26.7)
.background(Color(hex: "222222"))
.padding(.top, 13.3)
ContentMainRankingSortView(
sorts: viewModel.contentRankingSortList,
selectSort: { viewModel.selectedContentRankingSort = $0 },
selectedSort: $viewModel.selectedContentRankingSort
)
.frame(width: screenSize().width - 26.7)
.padding(.vertical, 16.7)
ScrollView(.vertical, showsIndicators: false) {
VStack(spacing: 20) {
ForEach(0..<viewModel.contentRankingItemList.count, id: \.self) { index in
let item = viewModel.contentRankingItemList[index]
HStack(spacing: 0) {
KFImage(URL(string: item.coverImageUrl))
.resizable()
.scaledToFill()
.frame(width: 66.7, height: 66.7, alignment: .top)
.clipped()
.cornerRadius(5.3)
Text("\(index + 1)")
.font(.custom(Font.bold.rawValue, size: 16.7))
.foregroundColor(Color(hex: "3bb9f1"))
.padding(.horizontal, 12)
VStack(alignment: .leading, spacing: 0) {
HStack(spacing: 8) {
Text(item.themeStr)
.font(.custom(Font.medium.rawValue, size: 8))
.foregroundColor(Color(hex: "3bac6a"))
.padding(2.6)
.background(Color(hex: "28312b"))
.cornerRadius(2.6)
Text(item.duration)
.font(.custom(Font.medium.rawValue, size: 8))
.foregroundColor(Color(hex: "777777"))
.padding(2.6)
.background(Color(hex: "222222"))
.cornerRadius(2.6)
}
Text(item.creatorNickname)
.font(.custom(Font.medium.rawValue, size: 10.7))
.foregroundColor(Color(hex: "777777"))
.padding(.vertical, 8)
Text(item.title)
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "d2d2d2"))
.lineLimit(2)
.padding(.top, 2.7)
}
Spacer()
if item.price > 0 {
HStack(spacing: 8) {
Image("ic_can")
VStack(spacing: 8) {
Text("\(viewModel.dateString)")
.font(.custom(Font.bold.rawValue, size: 14.7))
.foregroundColor(Color(hex: "eeeeee"))
Text("※ 인기 콘텐츠의 순위는 매주 업데이트됩니다.")
.font(.custom(Font.light.rawValue, size: 13.3))
.foregroundColor(Color(hex: "bbbbbb"))
}
.padding(.vertical, 8)
.frame(width: screenSize().width - 26.7)
.background(Color(hex: "222222"))
.padding(.top, 13.3)
ContentMainRankingSortView(
sorts: viewModel.contentRankingSortList,
selectSort: { viewModel.selectedContentRankingSort = $0 },
selectedSort: $viewModel.selectedContentRankingSort
)
.frame(width: screenSize().width - 26.7)
.padding(.vertical, 16.7)
ScrollView(.vertical, showsIndicators: false) {
LazyVStack(spacing: 20) {
ForEach(0..<viewModel.contentRankingItemList.count, id: \.self) { index in
let item = viewModel.contentRankingItemList[index]
NavigationLink {
ContentDetailView(contentId: item.contentId)
} label: {
HStack(spacing: 0) {
KFImage(URL(string: item.coverImageUrl))
.resizable()
.frame(width: 17, height: 17)
.scaledToFill()
.frame(width: 66.7, height: 66.7, alignment: .top)
.clipped()
.cornerRadius(5.3)
Text("\(item.price)")
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "909090"))
Text("\(index + 1)")
.font(.custom(Font.bold.rawValue, size: 16.7))
.foregroundColor(Color(hex: "3bb9f1"))
.padding(.horizontal, 12)
VStack(alignment: .leading, spacing: 0) {
HStack(spacing: 8) {
Text(item.themeStr)
.font(.custom(Font.medium.rawValue, size: 8))
.foregroundColor(Color(hex: "3bac6a"))
.padding(2.6)
.background(Color(hex: "28312b"))
.cornerRadius(2.6)
Text(item.duration)
.font(.custom(Font.medium.rawValue, size: 8))
.foregroundColor(Color(hex: "777777"))
.padding(2.6)
.background(Color(hex: "222222"))
.cornerRadius(2.6)
}
Text(item.creatorNickname)
.font(.custom(Font.medium.rawValue, size: 10.7))
.foregroundColor(Color(hex: "777777"))
.padding(.vertical, 8)
Text(item.title)
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "d2d2d2"))
.lineLimit(2)
.padding(.top, 2.7)
}
Spacer()
if item.price > 0 {
HStack(spacing: 8) {
Image("ic_can")
.resizable()
.frame(width: 17, height: 17)
Text("\(item.price)")
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "909090"))
}
} else {
Text("무료")
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "ffffff"))
.padding(.horizontal, 5.3)
.padding(.vertical, 2.7)
.background(Color(hex: "cf5c37"))
.cornerRadius(2.6)
}
}
.frame(height: 66.7)
.contentShape(Rectangle())
.onAppear {
if index == viewModel.contentRankingItemList.count - 1 {
viewModel.getContentRanking()
}
}
} else {
Text("무료")
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "ffffff"))
.padding(.horizontal, 5.3)
.padding(.vertical, 2.7)
.background(Color(hex: "cf5c37"))
.cornerRadius(2.6)
}
}
.frame(height: 66.7)
.contentShape(Rectangle())
.onTapGesture {
AppState
.shared
.setAppStep(step: .contentDetail(contentId: item.contentId))
}
.onAppear {
if index == viewModel.contentRankingItemList.count - 1 {
viewModel.getContentRanking()
}
}
}
}
.padding(13.3)
}
.padding(13.3)
}
if viewModel.isLoading {
LoadingView()
}
}
.popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .top, autohideIn: 2) {
GeometryReader { geo in
HStack {
Spacer()
Text(viewModel.errorMessage)
.padding(.vertical, 13.3)
.padding(.horizontal, 6.7)
.frame(width: geo.size.width - 66.7, alignment: .center)
.font(.custom(Font.medium.rawValue, size: 12))
.background(Color(hex: "9970ff"))
.foregroundColor(Color.white)
.multilineTextAlignment(.leading)
.fixedSize(horizontal: false, vertical: true)
.cornerRadius(20)
.padding(.top, 66.7)
Spacer()
if viewModel.isLoading {
LoadingView()
}
}
}
.onAppear {
viewModel.getContentRankingSortType()
viewModel.getContentRanking()
.popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .top, autohideIn: 2) {
GeometryReader { geo in
HStack {
Spacer()
Text(viewModel.errorMessage)
.padding(.vertical, 13.3)
.padding(.horizontal, 6.7)
.frame(width: geo.size.width - 66.7, alignment: .center)
.font(.custom(Font.medium.rawValue, size: 12))
.background(Color(hex: "9970ff"))
.foregroundColor(Color.white)
.multilineTextAlignment(.leading)
.fixedSize(horizontal: false, vertical: true)
.cornerRadius(20)
.padding(.top, 66.7)
Spacer()
}
}
}
.onAppear {
viewModel.getContentRankingSortType()
viewModel.getContentRanking()
}
}
}
}

View File

@@ -0,0 +1,45 @@
//
// CategoryApi.swift
// SodaLive
//
// Created by klaus on 2/7/24.
//
import Foundation
import Moya
enum CategoryApi {
case getCategoryList(creatorId: Int)
}
extension CategoryApi: TargetType {
var baseURL: URL {
return URL(string: BASE_URL)!
}
var path: String {
switch self {
case .getCategoryList:
return "/category"
}
}
var method: Moya.Method {
switch self {
case .getCategoryList:
return .get
}
}
var task: Moya.Task {
switch self {
case .getCategoryList(let creatorId):
let parameters = ["creatorId": creatorId] as [String : Any]
return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
}
}
var headers: [String : String]? {
return ["Authorization": "Bearer \(UserDefaults.string(forKey: UserDefaultsKey.token))"]
}
}

View File

@@ -0,0 +1,59 @@
//
// ContentListCategoryView.swift
// SodaLive
//
// Created by klaus on 2/7/24.
//
import SwiftUI
struct ContentListCategoryView: View {
let categoryList: [GetCategoryListResponse]
let selectCategory: (Int) -> Void
@Binding var selectedCategory: String
var body: some View {
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 8) {
ForEach(0..<categoryList.count, id: \.self) { index in
let category = categoryList[index]
Text(category.category)
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: selectedCategory == category.category ? "3bb9f1" : "777777"))
.padding(.horizontal, 13.3)
.padding(.vertical, 9.3)
.border(
Color(hex: selectedCategory == category.category ? "3bb9f1" : "eeeeee"),
width: 0.5
)
.cornerRadius(16.7)
.overlay(
RoundedRectangle(cornerRadius: CGFloat(16.7))
.stroke(lineWidth: 0.5)
.foregroundColor(Color(hex: selectedCategory == category.category ? "3bb9f1" : "eeeeee"))
)
.onTapGesture {
if selectedCategory != category.category {
selectedCategory = category.category
selectCategory(category.categoryId)
}
}
}
}
}
}
}
#Preview {
ContentListCategoryView(
categoryList: [
GetCategoryListResponse(categoryId: 0, category: "전체"),
GetCategoryListResponse(categoryId: 1, category: "test"),
GetCategoryListResponse(categoryId: 0, category: "test2")
],
selectCategory: { _ in },
selectedCategory: .constant("전체")
)
}

View File

@@ -0,0 +1,13 @@
//
// GetCategoryListResponse.swift
// SodaLive
//
// Created by klaus on 2/7/24.
//
import Foundation
struct GetCategoryListResponse: Decodable {
let categoryId: Int
let category: String
}

View File

@@ -9,7 +9,7 @@ import Foundation
import Moya
enum ContentApi {
case getAudioContentList(userId: Int, page: Int, size: Int, sort: ContentListViewModel.Sort)
case getAudioContentList(userId: Int, categoryId: Int, page: Int, size: Int, sort: ContentListViewModel.Sort)
case getAudioContentDetail(audioContentId: Int)
case likeContent(request: PutAudioContentLikeRequest)
case registerComment(request: RegisterAudioContentCommentRequest)
@@ -22,8 +22,11 @@ enum ContentApi {
case getAudioContentCommentReplyList(commentId: Int, page: Int, size: Int)
case deleteAudioContent(audioContentId: Int)
case modifyAudioContent(parameters: [MultipartFormData])
case getMain
case getNewContentUploadCreatorList
case getMainBannerList
case getMainOrderList
case getNewContentOfTheme(theme: String)
case getCurationList(page: Int, size: Int)
case donation(request: AudioContentDonationRequest)
case modifyComment(request: ModifyCommentRequest)
case getNewContentThemeList
@@ -31,6 +34,9 @@ enum ContentApi {
case getAudioContentListByCurationId(curationId: Int, page: Int, size: Int, sort: ContentCurationViewModel.Sort)
case getContentRanking(page: Int, size: Int, sortType: String)
case getContentRankingSortType
case pinContent(contentId: Int)
case unpinContent(contentId: Int)
case getAudioContentByTheme(themeId: Int, page: Int, size: Int, sort: ContentAllByThemeViewModel.Sort)
}
extension ContentApi: TargetType {
@@ -79,12 +85,21 @@ extension ContentApi: TargetType {
case .modifyAudioContent:
return "/audio-content"
case .getMain:
return "/audio-content/main"
case .getNewContentUploadCreatorList:
return "/audio-content/main/new-content-upload-creator"
case .getMainBannerList:
return "/audio-content/main/banner-list"
case .getMainOrderList:
return "/audio-content/main/order-list"
case .getNewContentOfTheme:
return "/audio-content/main/new"
case .getCurationList:
return "/audio-content/main/curation-list"
case .donation:
return "/audio-content/donation"
@@ -105,21 +120,33 @@ extension ContentApi: TargetType {
case .getContentRankingSortType:
return "/audio-content/ranking-sort-type"
case .pinContent(let contentId):
return "/audio-content/pin-to-the-top/\(contentId)"
case .unpinContent(let contentId):
return "/audio-content/unpin-at-the-top/\(contentId)"
case .getAudioContentByTheme(let themeId, _, _, _):
return "/audio-content/theme/\(themeId)/content"
}
}
var method: Moya.Method {
switch self {
case .getAudioContentList, .getAudioContentDetail, .getOrderList, .getAudioContentThemeList,
.getAudioContentCommentList, .getAudioContentCommentReplyList, .getMain, .getNewContentOfTheme,
.getAudioContentCommentList, .getAudioContentCommentReplyList, .getNewContentOfTheme,
.getNewContentThemeList, .getNewContentAllOfTheme, .getAudioContentListByCurationId, .getContentRanking,
.getContentRankingSortType:
return .get
case .likeContent, .modifyAudioContent, .modifyComment:
case .getMainBannerList, .getMainOrderList, .getNewContentUploadCreatorList, .getCurationList, .getAudioContentByTheme:
return .get
case .likeContent, .modifyAudioContent, .modifyComment, .unpinContent:
return .put
case .registerComment, .orderAudioContent, .addAllPlaybackTracking, .uploadAudioContent, .donation:
case .registerComment, .orderAudioContent, .addAllPlaybackTracking, .uploadAudioContent, .donation, .pinContent:
return .post
case .deleteAudioContent:
@@ -129,9 +156,10 @@ extension ContentApi: TargetType {
var task: Moya.Task {
switch self {
case .getAudioContentList(let userId, let page, let size, let sort):
case .getAudioContentList(let userId, let categoryId, let page, let size, let sort):
let parameters = [
"creator-id": userId,
"category-id": categoryId,
"page": page - 1,
"size": size,
"sort-type": sort
@@ -163,7 +191,7 @@ extension ContentApi: TargetType {
case .addAllPlaybackTracking(let request):
return .requestJSONEncodable(request)
case .getAudioContentThemeList, .getMain:
case .getAudioContentThemeList, .getMainBannerList, .getMainOrderList, .getNewContentUploadCreatorList:
return .requestPlain
case .uploadAudioContent(let parameters):
@@ -236,6 +264,26 @@ extension ContentApi: TargetType {
case .getContentRankingSortType:
return .requestPlain
case .getCurationList(let page, let size):
let parameters = [
"page": page - 1,
"size": size
] as [String : Any]
return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
case .pinContent, .unpinContent:
return .requestPlain
case .getAudioContentByTheme(_, let page, let size, let sort):
let parameters = [
"page": page - 1,
"size": size,
"sort-type": sort
] as [String : Any]
return .requestParameters(parameters: parameters, encoding: URLEncoding.queryString)
}
}

View File

@@ -26,6 +26,15 @@ struct ContentListItemView: View {
VStack(alignment: .leading, spacing: 0) {
HStack(spacing: 8) {
if item.isScheduledToOpen {
Text("오픈예정")
.font(.custom(Font.medium.rawValue, size: 8))
.foregroundColor(Color(hex: "3bb9f1"))
.padding(2.6)
.background(Color(hex: "003851"))
.cornerRadius(2.6)
}
Text(item.themeStr)
.font(.custom(Font.medium.rawValue, size: 8))
.foregroundColor(Color(hex: "3bac6a"))
@@ -39,11 +48,18 @@ struct ContentListItemView: View {
.padding(2.6)
.background(Color(hex: "222222"))
.cornerRadius(2.6)
if item.isPin {
Image("ic_pin")
.resizable()
.frame(width: 13.3, height: 13.3)
}
}
Text(item.title)
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color(hex: "d2d2d2"))
.multilineTextAlignment(.leading)
.padding(.top, 8)
.padding(.bottom, 10)
@@ -112,7 +128,9 @@ struct ContentListItemView_Previews: PreviewProvider {
duration: "00:04:43",
likeCount: 2,
commentCount: 0,
isAdult: false
isPin: true,
isAdult: false,
isScheduledToOpen: true
)
)
}

View File

@@ -13,148 +13,158 @@ struct ContentListView: View {
@StateObject var viewModel = ContentListViewModel()
var body: some View {
BaseView(isLoading: $viewModel.isLoading) {
VStack(spacing: 0) {
HStack(spacing: 0) {
Button {
AppState.shared.back()
} label: {
Image("ic_back")
.resizable()
.frame(width: 20, height: 20)
Text("콘텐츠 전체보기")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "eeeeee"))
}
Spacer()
}
.padding(.horizontal, 13.3)
.frame(height: 50)
.background(Color.black)
if userId == UserDefaults.int(forKey: .userId) {
Text("새로운 콘텐츠 등록하기")
.font(.custom(Font.bold.rawValue, size: 15))
.foregroundColor(Color(hex: "eeeeee"))
.padding(.vertical, 17)
.frame(maxWidth: .infinity)
.background(Color(hex: "9970ff"))
.cornerRadius(5.3)
.padding(.top, 13.3)
.padding(.horizontal, 13.3)
.onTapGesture { AppState.shared.setAppStep(step: .createContent) }
}
HStack(spacing: 13.3) {
Spacer()
Text("최신순")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(
Color(hex: "e2e2e2")
.opacity(viewModel.sort == .NEWEST ? 1 : 0.5)
)
.onTapGesture {
if viewModel.sort != .NEWEST {
viewModel.sort = .NEWEST
}
}
Text("높은 가격순")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(
Color(hex: "e2e2e2")
.opacity(viewModel.sort == .PRICE_HIGH ? 1 : 0.5)
)
.onTapGesture {
if viewModel.sort != .PRICE_HIGH {
viewModel.sort = .PRICE_HIGH
}
}
Text("낮은 가격순")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(
Color(hex: "e2e2e2")
.opacity(viewModel.sort == .PRICE_LOW ? 1 : 0.5)
)
.onTapGesture {
if viewModel.sort != .PRICE_LOW {
viewModel.sort = .PRICE_LOW
}
}
}
.padding(.vertical, 13.3)
.padding(.horizontal, 20)
.background(Color(hex: "161616"))
.padding(.top, 13.3)
HStack(spacing: 0) {
Text("전체")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "e2e2e2"))
Text("\(viewModel.totalCount)")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "ff5c49"))
.padding(.leading, 8)
Text("")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "e2e2e2"))
.padding(.leading, 2)
Spacer()
}
.padding(.vertical, 13.3)
.padding(.horizontal, 20)
ScrollViewReader { reader in
ScrollView(.vertical, showsIndicators: false) {
LazyVStack(spacing: 10.7) {
ScrollerToTop(reader: reader, scrollOnChange: $viewModel.scrollToTop)
NavigationView {
BaseView(isLoading: $viewModel.isLoading) {
VStack(spacing: 0) {
HStack(spacing: 0) {
Button {
AppState.shared.back()
} label: {
Image("ic_back")
.resizable()
.frame(width: 20, height: 20)
ForEach(0..<viewModel.audioContentList.count, id: \.self) { index in
let audioContent = viewModel.audioContentList[index]
ContentListItemView(item: audioContent)
.contentShape(Rectangle())
.onTapGesture {
AppState
.shared
.setAppStep(
step: .contentDetail(contentId: audioContent.contentId)
)
}
.onAppear {
if index == viewModel.audioContentList.count - 1 {
viewModel.getAudioContentList()
}
}
Text("콘텐츠 전체보기")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "eeeeee"))
}
Spacer()
}
.padding(.horizontal, 13.3)
.frame(height: 50)
.background(Color.black)
if !viewModel.categoryList.isEmpty {
ContentListCategoryView(
categoryList: viewModel.categoryList,
selectCategory: { viewModel.selectCategory(categoryId: $0) },
selectedCategory: $viewModel.selectedCategory
)
.padding(.horizontal, 13.3)
}
if userId == UserDefaults.int(forKey: .userId) {
Text("새로운 콘텐츠 등록하기")
.font(.custom(Font.bold.rawValue, size: 15))
.foregroundColor(Color(hex: "eeeeee"))
.padding(.vertical, 17)
.frame(maxWidth: .infinity)
.background(Color(hex: "3bb9f1"))
.cornerRadius(5.3)
.padding(.top, 13.3)
.padding(.horizontal, 13.3)
.onTapGesture { AppState.shared.setAppStep(step: .createContent) }
}
HStack(spacing: 13.3) {
Spacer()
Text("최신순")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(
Color(hex: "e2e2e2")
.opacity(viewModel.sort == .NEWEST ? 1 : 0.5)
)
.onTapGesture {
if viewModel.sort != .NEWEST {
viewModel.sort = .NEWEST
}
}
Text("높은 가격순")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(
Color(hex: "e2e2e2")
.opacity(viewModel.sort == .PRICE_HIGH ? 1 : 0.5)
)
.onTapGesture {
if viewModel.sort != .PRICE_HIGH {
viewModel.sort = .PRICE_HIGH
}
}
Text("낮은 가격순")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(
Color(hex: "e2e2e2")
.opacity(viewModel.sort == .PRICE_LOW ? 1 : 0.5)
)
.onTapGesture {
if viewModel.sort != .PRICE_LOW {
viewModel.sort = .PRICE_LOW
}
}
}
.padding(.vertical, 13.3)
.padding(.horizontal, 20)
.background(Color(hex: "161616"))
.padding(.top, 13.3)
HStack(spacing: 0) {
Text("전체")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "e2e2e2"))
Text("\(viewModel.totalCount)")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "ff5c49"))
.padding(.leading, 8)
Text("")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "e2e2e2"))
.padding(.leading, 2)
Spacer()
}
.padding(.vertical, 13.3)
.padding(.horizontal, 20)
ScrollViewReader { reader in
ScrollView(.vertical, showsIndicators: false) {
LazyVStack(spacing: 10.7) {
ScrollerToTop(reader: reader, scrollOnChange: $viewModel.scrollToTop)
ForEach(0..<viewModel.audioContentList.count, id: \.self) { index in
let audioContent = viewModel.audioContentList[index]
NavigationLink {
ContentDetailView(contentId: audioContent.contentId)
} label: {
ContentListItemView(item: audioContent)
.contentShape(Rectangle())
.onAppear {
if index == viewModel.audioContentList.count - 1 {
viewModel.getAudioContentList()
}
}
}
}
}
.padding(.horizontal, 13.3)
}
}
.padding(.top, 13.3)
}
.padding(.top, 13.3)
}
.onAppear {
viewModel.userId = userId
viewModel.getAudioContentList()
}
.popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .bottom, autohideIn: 2) {
HStack {
Spacer()
Text(viewModel.errorMessage)
.padding(.vertical, 13.3)
.frame(width: screenSize().width - 66.7, alignment: .center)
.font(.custom(Font.medium.rawValue, size: 12))
.background(Color(hex: "9970ff"))
.foregroundColor(Color.white)
.multilineTextAlignment(.leading)
.cornerRadius(20)
.padding(.bottom, 66.7)
Spacer()
.onAppear {
viewModel.userId = userId
viewModel.getCategoryList()
viewModel.getAudioContentList()
}
.popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .bottom, autohideIn: 2) {
HStack {
Spacer()
Text(viewModel.errorMessage)
.padding(.vertical, 13.3)
.frame(width: screenSize().width - 66.7, alignment: .center)
.font(.custom(Font.medium.rawValue, size: 12))
.background(Color(hex: "3bb9f1"))
.foregroundColor(Color.white)
.multilineTextAlignment(.leading)
.cornerRadius(20)
.padding(.bottom, 66.7)
Spacer()
}
}
}
}

View File

@@ -21,6 +21,7 @@ final class ContentListViewModel: ObservableObject {
@Published var isShowPopup = false
@Published var isLoading = false
@Published var categoryList: [GetCategoryListResponse] = []
@Published var audioContentList: [GetAudioContentListItem] = []
@Published var totalCount = 0
@Published var sort = Sort.NEWEST {
@@ -32,18 +33,20 @@ final class ContentListViewModel: ObservableObject {
}
@Published var scrollToTop = false
@Published var selectedCategory: String = "전체"
var userId = 0
var page = 1
var isLast = false
private let pageSize = 10
private var categoryId = 0
func getAudioContentList() {
if (!isLast && !isLoading) {
isLoading = true
repository
.getAudioContentList(userId: userId, page: page, size: pageSize, sort: sort)
.getAudioContentList(userId: userId, categoryId: categoryId, page: page, size: pageSize, sort: sort)
.sink { result in
switch result {
case .finished:
@@ -64,11 +67,11 @@ final class ContentListViewModel: ObservableObject {
self.scrollToTop.toggle()
}
if !data.items.isEmpty {
page += 1
self.totalCount = data.totalCount
self.audioContentList.append(contentsOf: data.items)
} else {
page += 1
self.totalCount = data.totalCount
self.audioContentList.append(contentsOf: data.items)
if data.items.isEmpty {
isLast = true
}
} else {
@@ -90,4 +93,53 @@ final class ContentListViewModel: ObservableObject {
.store(in: &subscription)
}
}
func getCategoryList() {
repository.getCategoryList(creatorId: userId)
.sink { result in
switch result {
case .finished:
DEBUG_LOG("finish")
case .failure(let error):
ERROR_LOG(error.localizedDescription)
}
} receiveValue: { [unowned self] response in
let responseData = response.data
do {
let jsonDecoder = JSONDecoder()
let decoded = try jsonDecoder.decode(ApiResponse<[GetCategoryListResponse]>.self, from: responseData)
if let data = decoded.data, decoded.success {
categoryList.removeAll()
if !data.isEmpty {
categoryList.append(GetCategoryListResponse(categoryId: 0, category: "전체"))
categoryList.append(contentsOf: data)
}
} else {
if let message = decoded.message {
self.errorMessage = message
} else {
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
}
self.isShowPopup = true
}
} catch {
print(error)
self.errorMessage = "다시 시도해 주세요.\n계속 같은 문제가 발생할 경우 고객센터로 문의 주시기 바랍니다."
self.isShowPopup = true
}
}
.store(in: &subscription)
}
func selectCategory(categoryId: Int) {
self.categoryId = categoryId
page = 1
isLast = false
getAudioContentList()
}
}

View File

@@ -12,9 +12,10 @@ import Moya
final class ContentRepository {
private let api = MoyaProvider<ContentApi>()
private let categoryApi = MoyaProvider<CategoryApi>()
func getAudioContentList(userId: Int, page: Int, size: Int, sort: ContentListViewModel.Sort) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getAudioContentList(userId: userId, page: page, size: size, sort: sort))
func getAudioContentList(userId: Int, categoryId: Int, page: Int, size: Int, sort: ContentListViewModel.Sort) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getAudioContentList(userId: userId, categoryId: categoryId, page: page, size: size, sort: sort))
}
func getAudioContentDetail(audioContentId: Int) -> AnyPublisher<Response, MoyaError> {
@@ -65,14 +66,26 @@ final class ContentRepository {
return api.requestPublisher(.modifyAudioContent(parameters: parameters))
}
func getMain() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getMain)
func getNewContentUploadCreatorList() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getNewContentUploadCreatorList)
}
func getMainBannerList() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getMainBannerList)
}
func getMainOrderList() -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getMainOrderList)
}
func getNewContentOfTheme(theme: String) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getNewContentOfTheme(theme: theme))
}
func getCurationList(page: Int, size: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getCurationList(page: page, size: size))
}
func donation(contentId: Int, can: Int, comment: String) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.donation(request: AudioContentDonationRequest(contentId: contentId, donationCan: can, comment: comment)))
}
@@ -100,4 +113,20 @@ final class ContentRepository {
func getContentRanking(page: Int, size: Int, sortType: String = "매출") -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getContentRanking(page: page, size: size, sortType: sortType))
}
func pinContent(contentId: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.pinContent(contentId: contentId))
}
func unpinContent(contentId: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.unpinContent(contentId: contentId))
}
func getCategoryList(creatorId: Int) -> AnyPublisher<Response, MoyaError> {
return categoryApi.requestPublisher(.getCategoryList(creatorId: creatorId))
}
func getAudioContentByTheme(themeId: Int, page: Int, size: Int, sort: ContentAllByThemeViewModel.Sort) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(.getAudioContentByTheme(themeId: themeId, page: page, size: size, sort: sort))
}
}

View File

@@ -16,6 +16,8 @@ struct ContentCreateView: View {
@State private var isShowPhotoPicker = false
@State private var isShowSelectAudioView = false
@State private var isShowSelectThemeView = false
@State private var isShowSelectDateView = false
@State private var isShowSelectTimeView = false
var body: some View {
BaseView(isLoading: $viewModel.isLoading) {
@@ -37,7 +39,7 @@ struct ContentCreateView: View {
.resizable()
.scaledToFill()
.frame(width: 107, height: 107)
.background(Color(hex: "3e3358"))
.background(Color(hex: "13181b"))
.cornerRadius(8)
.clipped()
} else {
@@ -46,13 +48,13 @@ struct ContentCreateView: View {
.scaledToFit()
.padding(13.3)
.frame(width: 107, height: 107)
.background(Color(hex: "3e3358"))
.background(Color(hex: "13181b"))
.cornerRadius(8)
}
Image("ic_camera")
.padding(10)
.background(Color(hex: "9970ff"))
.background(Color(hex: "3bb9f1"))
.cornerRadius(30)
.offset(x: 50, y: 36)
}
@@ -67,15 +69,15 @@ struct ContentCreateView: View {
Text(viewModel.fileName.trimmingCharacters(in: .whitespacesAndNewlines) == "" ? "파일선택" : viewModel.fileName)
.font(.custom(Font.medium.rawValue, size: 16.7))
.foregroundColor(Color(hex: "9970ff"))
.foregroundColor(Color(hex: "3bb9f1"))
.padding(.vertical, 10)
.frame(maxWidth: .infinity)
.background(Color(hex: "9970ff").opacity(0.2))
.background(Color(hex: "13181b"))
.cornerRadius(5.3)
.overlay(
RoundedCorner(radius: 8)
.stroke(lineWidth: 2)
.foregroundColor(Color(hex: "9970ff"))
.foregroundColor(Color(hex: "3bb9f1"))
)
.padding(.top, 13.3)
.onTapGesture { isShowSelectAudioView = true }
@@ -150,16 +152,16 @@ struct ContentCreateView: View {
viewModel.theme!.theme :
"테마 선택")
.font(.custom(Font.bold.rawValue, size: 16.7))
.foregroundColor(Color(hex: "9970ff"))
.foregroundColor(Color(hex: "3bb9f1"))
}
.padding(.vertical, viewModel.theme != nil ? 8 : 13.3)
.frame(maxWidth: .infinity)
.background(Color(hex: "9970ff").opacity(0.2))
.background(Color(hex: "13181b"))
.cornerRadius(24)
.overlay(
RoundedRectangle(cornerRadius: 24)
.stroke(lineWidth: 2)
.foregroundColor(Color(hex: "9970ff"))
.foregroundColor(Color(hex: "3bb9f1"))
)
.padding(.top, 13.3)
.onTapGesture {
@@ -286,6 +288,84 @@ struct ContentCreateView: View {
.frame(maxWidth: .infinity, alignment: .leading)
}
.padding(.top, 26.7)
VStack(spacing: 13.3) {
Text("미리듣기")
.font(.custom(Font.bold.rawValue, size: 16.7))
.foregroundColor(Color(hex: "eeeeee"))
.frame(maxWidth: .infinity, alignment: .leading)
HStack(spacing: 13.3) {
SelectButtonView(title: "생성", isChecked: viewModel.isGeneratePreview) {
if !viewModel.isGeneratePreview {
viewModel.isGeneratePreview = true
}
}
SelectButtonView(title: "생성 안 함", isChecked: !viewModel.isGeneratePreview) {
if viewModel.isGeneratePreview {
viewModel.isGeneratePreview = false
}
}
}
}
.padding(.top, 26.7)
if viewModel.isGeneratePreview {
VStack(spacing: 10) {
Text("미리듣기 시간 설정")
.font(.custom(Font.bold.rawValue, size: 16.7))
.foregroundColor(Color(hex: "eeeeee"))
.frame(maxWidth: .infinity, alignment: .leading)
Text("미리듣기 시간을 직접 설정하지 않으면 콘텐츠 앞부분 30초가 자동으로 설정됩니다. 미리듣기의 시간제한은 없습니다.")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "777777"))
.frame(maxWidth: .infinity, alignment: .leading)
HStack(spacing: 13.3) {
VStack(spacing: 5.3) {
Text("시작 시간")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "d2d2d2"))
.frame(maxWidth: .infinity, alignment: .leading)
TextField("00:00:00", text: $viewModel.previewStartTime)
.autocapitalization(.none)
.disableAutocorrection(true)
.font(.custom(Font.bold.rawValue, size: 14.6))
.foregroundColor(Color(hex: "777777"))
.padding(.vertical, 16.7)
.padding(.horizontal, 13.3)
.background(Color(hex: "222222"))
.cornerRadius(6.7)
.keyboardType(.default)
.multilineTextAlignment(.center)
}
VStack(spacing: 5.3) {
Text("종료 시간")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "d2d2d2"))
.frame(maxWidth: .infinity, alignment: .leading)
TextField("00:00:30", text: $viewModel.previewEndTime)
.autocapitalization(.none)
.disableAutocorrection(true)
.font(.custom(Font.bold.rawValue, size: 14.6))
.foregroundColor(Color(hex: "777777"))
.padding(.vertical, 16.7)
.padding(.horizontal, 13.3)
.background(Color(hex: "222222"))
.cornerRadius(6.7)
.keyboardType(.default)
.multilineTextAlignment(.center)
}
}
.padding(.top, 3.3)
}
.padding(.top, 26.7)
}
}
}
.padding(.top, 26.7)
@@ -343,62 +423,79 @@ struct ContentCreateView: View {
.padding(.top, 26.7)
.padding(.horizontal, 13.3)
if !viewModel.isFree {
VStack(spacing: 10) {
Text("미리듣기 시간 설정")
.font(.custom(Font.bold.rawValue, size: 16.7))
.foregroundColor(Color(hex: "eeeeee"))
.frame(maxWidth: .infinity, alignment: .leading)
Text("미리듣기 시간을 직접 설정하지 않으면 콘텐츠 앞부분 30초가 자동으로 설정됩니다. 미리듣기의 시간제한은 없습니다.")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "777777"))
.frame(maxWidth: .infinity, alignment: .leading)
HStack(spacing: 13.3) {
VStack(spacing: 5.3) {
Text("시작 시간")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "d2d2d2"))
.frame(maxWidth: .infinity, alignment: .leading)
TextField("00:00:00", text: $viewModel.previewStartTime)
.autocapitalization(.none)
.disableAutocorrection(true)
.font(.custom(Font.bold.rawValue, size: 14.6))
.foregroundColor(Color(hex: "777777"))
.padding(.vertical, 16.7)
.padding(.horizontal, 13.3)
.background(Color(hex: "222222"))
.cornerRadius(6.7)
.keyboardType(.default)
.multilineTextAlignment(.center)
}
VStack(spacing: 5.3) {
Text("종료 시간")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "d2d2d2"))
.frame(maxWidth: .infinity, alignment: .leading)
TextField("00:00:30", text: $viewModel.previewEndTime)
.autocapitalization(.none)
.disableAutocorrection(true)
.font(.custom(Font.bold.rawValue, size: 14.6))
.foregroundColor(Color(hex: "777777"))
.padding(.vertical, 16.7)
.padding(.horizontal, 13.3)
.background(Color(hex: "222222"))
.cornerRadius(6.7)
.keyboardType(.default)
.multilineTextAlignment(.center)
VStack(spacing: 13.3) {
Text("예약 공개")
.font(.custom(Font.bold.rawValue, size: 16.7))
.foregroundColor(Color(hex: "eeeeee"))
.frame(maxWidth: .infinity, alignment: .leading)
HStack(spacing: 13.3) {
SelectButtonView(title: "지금 공개", isChecked: !viewModel.isActiveReservation) {
if viewModel.isActiveReservation {
viewModel.isActiveReservation = false
}
}
SelectButtonView(title: "예약 공개", isChecked: viewModel.isActiveReservation) {
if !viewModel.isActiveReservation {
viewModel.isActiveReservation = true
}
}
.padding(.top, 3.3)
}
.padding(.top, 26.7)
.padding(.horizontal, 13.3)
if viewModel.isActiveReservation {
HStack(spacing: 13.3) {
VStack(alignment: .leading, spacing: 6.7) {
Text("예약 날짜")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "eeeeee"))
Button(action: {
hideKeyboard()
self.isShowSelectDateView = true
}) {
Text(viewModel.releaseDateString)
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: "eeeeee"))
.frame(maxWidth: .infinity)
.frame(height: 48.7)
.overlay(
RoundedRectangle(cornerRadius: 6.7)
.stroke(Color(hex: "3bb9f1"), lineWidth: 1.3)
)
}
}
VStack(alignment: .leading, spacing: 6.7) {
Text("예약 시간")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "eeeeee"))
Button(action: {
hideKeyboard()
self.isShowSelectTimeView = true
}) {
Text(viewModel.releaseTimeString)
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: "eeeeee"))
.frame(maxWidth: .infinity)
.frame(height: 48.7)
.overlay(
RoundedRectangle(cornerRadius: 6.7)
.stroke(Color(hex: "3bb9f1"), lineWidth: 1.3)
)
}
}
}
.padding(.horizontal, 13.3)
.padding(.vertical, 14.2)
.frame(maxWidth: .infinity)
.background(Color(hex: "222222"))
.padding(.top, 22.7)
}
}
.padding(.top, 26.7)
.padding(.horizontal, 13.3)
VStack(spacing: 0) {
HStack(alignment: .top, spacing: 0) {
@@ -407,7 +504,7 @@ struct ContentCreateView: View {
.foregroundColor(Color.white)
.frame(height: 50)
.frame(maxWidth: .infinity)
.background(Color(hex: "9970ff"))
.background(Color(hex: "3bb9f1"))
.cornerRadius(10)
.padding(13.3)
}
@@ -449,6 +546,14 @@ struct ContentCreateView: View {
}
}
if isShowSelectDateView {
SelectDatePicker(selectedDate: $viewModel.releaseDate, isShowing: $isShowSelectDateView)
}
if isShowSelectTimeView {
QuarterTimePickerView(selectedTime: $viewModel.releaseTime, isShowing: $isShowSelectTimeView)
}
if isShowPhotoPicker {
ImagePicker(
isShowing: $isShowPhotoPicker,
@@ -494,7 +599,7 @@ struct ContentCreateView: View {
.padding(.vertical, 13.3)
.frame(width: screenSize().width - 66.7, alignment: .center)
.font(.custom(Font.medium.rawValue, size: 12))
.background(Color(hex: "9970ff"))
.background(Color(hex: "3bb9f1"))
.foregroundColor(Color.white)
.multilineTextAlignment(.center)
.cornerRadius(20)
@@ -522,11 +627,11 @@ struct SelectButtonView: View {
Text(title)
.font(.custom(Font.bold.rawValue, size: 14.7))
.foregroundColor(isChecked ? .white : Color(hex: "9970ff"))
.foregroundColor(isChecked ? .white : Color(hex: "80D8FF"))
}
.frame(height: 48.7)
.frame(maxWidth: .infinity)
.background(isChecked ? Color(hex: "9970ff") : Color(hex: "1f1734"))
.background(isChecked ? Color(hex: "3BB9F1") : Color(hex: "13181B"))
.cornerRadius(6.7)
.onTapGesture {
hideKeyboard()

Some files were not shown because too many files have changed in this diff Show More