From 8bacf363ffbaf4549b82679bd7dde4d33f7c1de7 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 14 Nov 2025 00:52:35 +0900 Subject: [PATCH] =?UTF-8?q?feat(home):=20=ED=8F=AC=EC=9D=B8=ED=8A=B8=20?= =?UTF-8?q?=EB=8C=80=EC=97=AC=20=EC=BD=98=ED=85=90=EC=B8=A0=20=EC=84=B9?= =?UTF-8?q?=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Home/GetHomeResponse.swift | 1 + SodaLive/Sources/Home/HomeTabView.swift | 24 ++++++++++++++++++++ SodaLive/Sources/Home/HomeTabViewModel.swift | 2 ++ 3 files changed, 27 insertions(+) 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..