콘텐츠, 라이브 메인

- 보이스 모닝콜 메뉴 추가
- 라이브 다시듣기 메뉴 라이브 메인으로 이동
This commit is contained in:
Yu Sung
2024-10-11 14:21:05 +09:00
parent 46df6864b0
commit eba9e4dec2
15 changed files with 101 additions and 31 deletions

View File

@@ -82,7 +82,7 @@ final class ContentRepository {
return api.requestPublisher(
.getNewContentOfTheme(
theme: theme,
isAdultContentVisible: UserDefaults.bool(forKey: .isAdultContentVisible),
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL
)
)
@@ -91,7 +91,7 @@ final class ContentRepository {
func getCurationList(page: Int, size: Int) -> AnyPublisher<Response, MoyaError> {
return api.requestPublisher(
.getCurationList(
isAdultContentVisible: UserDefaults.bool(forKey: .isAdultContentVisible),
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL,
page: page,
size: size
@@ -115,7 +115,7 @@ final class ContentRepository {
return api.requestPublisher(
.getNewContentAllOfTheme(
theme: theme,
isAdultContentVisible: UserDefaults.bool(forKey: .isAdultContentVisible),
isAdultContentVisible: UserDefaults.isAdultContentVisible(),
contentType: ContentType(rawValue: UserDefaults.string(forKey: .contentPreference)) ?? ContentType.ALL,
page: page,
size: size

View File

@@ -40,6 +40,28 @@ struct ContentMainView: View {
ContentMainRecommendSeriesView()
HStack(spacing: 8) {
ZStack {
Image("img_bg_morning_call")
.resizable()
.frame(height: 53.3)
.frame(maxWidth: .infinity)
.cornerRadius(2.6)
HStack(spacing: 2.7) {
Image("ic_alarm_clock_blue")
Text("보이스 모닝콜")
.font(.custom(Font.bold.rawValue, size: 16.7))
.foregroundColor(Color(hex: "0057ff"))
}
.cornerRadius(2.6)
}
.onTapGesture {
AppState.shared.setAppStep(
step: .contentAllByTheme(themeId: 12)
)
}
ZStack {
Image("img_bg_short_play")
.resizable()
@@ -61,28 +83,6 @@ struct ContentMainView: View {
step: .contentAllByTheme(themeId: 11)
)
}
ZStack {
Image("img_bg_review_live")
.resizable()
.frame(height: 53.3)
.frame(maxWidth: .infinity)
.cornerRadius(2.6)
HStack(spacing: 2.7) {
Image("ic_thumb_play_blue")
Text("라이브 다시듣기")
.font(.custom(Font.bold.rawValue, size: 16.7))
.foregroundColor(Color(hex: "0057ff"))
}
.cornerRadius(2.6)
}
.onTapGesture {
AppState.shared.setAppStep(
step: .contentAllByTheme(themeId: 7)
)
}
}
.padding(.bottom, 40)
.padding(.horizontal, 13.3)