From e782f72179b42d0cc71f72169d7631d3a762e5ba Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 14 Dec 2023 18:10:47 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=20-=20=EC=83=88=EB=A1=9C=EC=9A=B4=20=EC=BD=98?= =?UTF-8?q?=ED=85=90=EC=B8=A0=20=ED=85=8C=EB=A7=88=20=EC=83=88=EB=A1=9C?= =?UTF-8?q?=EA=B3=A0=EC=B9=A8=20=ED=95=A0=20=EB=95=8C=20=EB=A7=88=EB=8B=A4?= =?UTF-8?q?=20=EC=A4=91=EB=B3=B5=EC=9C=BC=EB=A1=9C=20=EB=8A=98=EC=96=B4?= =?UTF-8?q?=EB=82=98=EB=8D=98=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Content/Main/NewContent/ContentMainNewContentView.swift | 2 +- .../Main/NewContent/ContentMainNewContentViewModel.swift | 1 + .../Sources/Content/Main/Ranking/ContentMainRankingView.swift | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SodaLive/Sources/Content/Main/NewContent/ContentMainNewContentView.swift b/SodaLive/Sources/Content/Main/NewContent/ContentMainNewContentView.swift index cf6de24..8911393 100644 --- a/SodaLive/Sources/Content/Main/NewContent/ContentMainNewContentView.swift +++ b/SodaLive/Sources/Content/Main/NewContent/ContentMainNewContentView.swift @@ -12,7 +12,7 @@ struct ContentMainNewContentView: View { @StateObject private var viewModel = ContentMainNewContentViewModel() var body: some View { - VStack(spacing: 16.7) { + LazyVStack(spacing: 16.7) { HStack(spacing: 0) { Text("새로운 콘텐츠") .font(.custom(Font.bold.rawValue, size: 18.3)) diff --git a/SodaLive/Sources/Content/Main/NewContent/ContentMainNewContentViewModel.swift b/SodaLive/Sources/Content/Main/NewContent/ContentMainNewContentViewModel.swift index 0a9343e..d76dcba 100644 --- a/SodaLive/Sources/Content/Main/NewContent/ContentMainNewContentViewModel.swift +++ b/SodaLive/Sources/Content/Main/NewContent/ContentMainNewContentViewModel.swift @@ -44,6 +44,7 @@ final class ContentMainNewContentViewModel: ObservableObject { let decoded = try jsonDecoder.decode(ApiResponse<[String]>.self, from: responseData) if let data = decoded.data, decoded.success { + self.themeList.removeAll() self.themeList.append("전체") self.themeList.append(contentsOf: data) } else { diff --git a/SodaLive/Sources/Content/Main/Ranking/ContentMainRankingView.swift b/SodaLive/Sources/Content/Main/Ranking/ContentMainRankingView.swift index 97d98f9..31d13d0 100644 --- a/SodaLive/Sources/Content/Main/Ranking/ContentMainRankingView.swift +++ b/SodaLive/Sources/Content/Main/Ranking/ContentMainRankingView.swift @@ -19,7 +19,7 @@ struct ContentMainRankingView: View { ] var body: some View { - VStack(spacing: 16.7) { + LazyVStack(spacing: 16.7) { HStack(spacing: 0) { Text("인기 콘텐츠") .font(.custom(Font.bold.rawValue, size: 18.3))