feat: 홈 메인

- 추천 채널 UI 추가
This commit is contained in:
Yu Sung
2025-07-14 14:21:31 +09:00
parent b6e5b629ae
commit 0f658d07af
7 changed files with 222 additions and 14 deletions

View File

@@ -136,23 +136,27 @@ struct HomeTabView: View {
HomeWeeklyChartView(contentList: viewModel.contentRanking)
}
VStack(alignment: .leading, spacing: 16) {
HStack(spacing: 0) {
Text("추천")
.font(.custom(Font.preBold.rawValue, size: 26))
.foregroundColor(.button)
Text(" 채널")
.font(.custom(Font.preBold.rawValue, size: 26))
.foregroundColor(.white)
}
.padding(.horizontal, 24)
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 16) {
if !viewModel.recommendChannelList.isEmpty {
VStack(alignment: .leading, spacing: 16) {
HStack(spacing: 0) {
Text("추천")
.font(.custom(Font.preBold.rawValue, size: 26))
.foregroundColor(.button)
Text(" 채널")
.font(.custom(Font.preBold.rawValue, size: 26))
.foregroundColor(.white)
}
.padding(.horizontal, 24)
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 16) {
ForEach(0..<viewModel.recommendChannelList.count, id: \.self) {
RecommendChannelItemView(item: viewModel.recommendChannelList[$0])
}
}
.padding(.horizontal, 24)
}
}
}