feat(home): 포인트 대여 콘텐츠 섹션 추가

This commit is contained in:
Yu Sung
2025-11-14 00:52:35 +09:00
parent 1f88bcbddc
commit 8bacf363ff
3 changed files with 27 additions and 0 deletions

View File

@@ -303,6 +303,30 @@ struct HomeTabView: View {
}
}
if !viewModel.pointAvailableContentList.isEmpty {
VStack(alignment: .leading, spacing: 16) {
HStack(spacing: 0) {
Text("포인트")
.font(.custom(Font.preBold.rawValue, size: 24))
.foregroundColor(.button)
Text(" 대여 콘텐츠")
.font(.custom(Font.preBold.rawValue, size: 24))
.foregroundColor(.white)
}
.padding(.horizontal, 24)
ScrollView(.horizontal, showsIndicators: false) {
LazyHStack(spacing: 16) {
ForEach(0..<viewModel.pointAvailableContentList.count, id: \.self) { index in
ContentItemView(item: viewModel.pointAvailableContentList[index])
}
}
.padding(.horizontal, 24)
}
}
}
if !viewModel.curationList.isEmpty {
ForEach(0..<viewModel.curationList.count, id: \.self) { curationIndex in
let curation = viewModel.curationList[curationIndex]