feat(home): 사용하지 않는 큐레이션 영역 제거
This commit is contained in:
@@ -20,5 +20,4 @@ struct GetHomeResponse: Decodable {
|
||||
let recommendChannelList: [RecommendChannelResponse]
|
||||
let freeContentList: [AudioContentMainItem]
|
||||
let pointAvailableContentList: [AudioContentMainItem]
|
||||
let curationList: [GetContentCurationResponse]
|
||||
}
|
||||
|
||||
@@ -327,39 +327,6 @@ struct HomeTabView: View {
|
||||
}
|
||||
}
|
||||
|
||||
if !viewModel.curationList.isEmpty {
|
||||
ForEach(0..<viewModel.curationList.count, id: \.self) { curationIndex in
|
||||
let curation = viewModel.curationList[curationIndex]
|
||||
VStack(alignment: .leading, spacing: 16) {
|
||||
HStack(spacing: 0) {
|
||||
Text(curation.title)
|
||||
.font(.custom(Font.preBold.rawValue, size: 24))
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
.padding(.horizontal, 24)
|
||||
|
||||
ScrollView(.horizontal, showsIndicators: false) {
|
||||
LazyHStack(spacing: 16) {
|
||||
ForEach(0..<curation.items.count, id: \.self) { index in
|
||||
let item = curation.items[index]
|
||||
ContentItemView(
|
||||
item: AudioContentMainItem(
|
||||
contentId: item.contentId,
|
||||
creatorId: item.creatorId,
|
||||
title: item.title,
|
||||
coverImageUrl: item.coverImageUrl,
|
||||
creatorNickname: item.creatorNickname,
|
||||
isPointAvailable: item.isPointAvailable
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 24)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Text("""
|
||||
- 회사명 : 주식회사 소다라이브
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@ final class HomeTabViewModel: ObservableObject {
|
||||
@Published var recommendChannelList: [RecommendChannelResponse] = []
|
||||
@Published var freeContentList: [AudioContentMainItem] = []
|
||||
@Published var pointAvailableContentList: [AudioContentMainItem] = []
|
||||
@Published var curationList: [GetContentCurationResponse] = []
|
||||
|
||||
func fetchData() {
|
||||
isLoading = true
|
||||
@@ -66,7 +65,6 @@ final class HomeTabViewModel: ObservableObject {
|
||||
self.recommendChannelList = data.recommendChannelList
|
||||
self.freeContentList = data.freeContentList
|
||||
self.pointAvailableContentList = data.pointAvailableContentList
|
||||
self.curationList = data.curationList
|
||||
} else {
|
||||
if let message = decoded.message {
|
||||
self.errorMessage = message
|
||||
|
||||
Reference in New Issue
Block a user