diff --git a/SodaLive/Sources/Home/GetHomeResponse.swift b/SodaLive/Sources/Home/GetHomeResponse.swift index e3a29be..2c44338 100644 --- a/SodaLive/Sources/Home/GetHomeResponse.swift +++ b/SodaLive/Sources/Home/GetHomeResponse.swift @@ -19,5 +19,6 @@ struct GetHomeResponse: Decodable { let contentRanking: [GetAudioContentRankingItem] let recommendChannelList: [RecommendChannelResponse] let freeContentList: [AudioContentMainItem] + let pointAvailableContentList: [AudioContentMainItem] let curationList: [GetContentCurationResponse] } diff --git a/SodaLive/Sources/Home/HomeTabView.swift b/SodaLive/Sources/Home/HomeTabView.swift index ea08ead..8d33e1d 100644 --- a/SodaLive/Sources/Home/HomeTabView.swift +++ b/SodaLive/Sources/Home/HomeTabView.swift @@ -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..