큐레이션 전체보기 페이지 추가

This commit is contained in:
Yu Sung
2023-09-27 21:16:39 +09:00
parent fd356451ae
commit 658cff20eb
10 changed files with 243 additions and 4 deletions

View File

@@ -24,7 +24,13 @@ struct ContentMainCurationItemView: View {
.resizable()
.frame(width: 20, height: 20)
.onTapGesture {
AppState.shared
.setAppStep(
step: .curationAll(
title: item.title,
curationId: item.curationId
)
)
}
}

View File

@@ -14,8 +14,7 @@ struct ContentMainCurationView: View {
var body: some View {
LazyVStack(spacing: 40) {
ForEach(0..<items.count, id: \.self) {
let item = items[$0]
ContentMainCurationItemView(item: item)
ContentMainCurationItemView(item: items[$0])
.padding(.horizontal, 13.3)
}
}

View File

@@ -33,6 +33,7 @@ struct GetAudioContentMainItem: Decodable {
}
struct GetAudioContentCurationResponse: Decodable {
let curationId: Int
let title: String
let description: String
let contents: [GetAudioContentMainItem]