From 4d5ac61dbe67792e6d7cb435af1169f9ac6365a7 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 20 Nov 2025 15:06:25 +0900 Subject: [PATCH] =?UTF-8?q?feat(latest-audio-content-all):=20=ED=85=8C?= =?UTF-8?q?=EB=A7=88=20UI=20=EB=B3=80=EA=B2=BD,=20=EC=95=84=EC=9D=B4?= =?UTF-8?q?=ED=85=9C=202=EB=8B=A8=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../All/ByTheme/ContentAllByThemeView.swift | 25 +++++++++----- .../Content/All/ContentNewAllItemView.swift | 6 +--- .../Content/All/ContentNewAllView.swift | 34 ++++++++++++------- .../Curation/ContentCurationView.swift | 19 +++++++++-- .../Alarm/All/ContentMainAlarmAllView.swift | 25 +++++++++----- .../V2/Asmr/All/ContentMainAsmrAllView.swift | 25 +++++++++----- .../ContentMainIntroduceCreatorAllView.swift | 25 +++++++++----- .../Replay/All/ContentMainReplayAllView.swift | 25 +++++++++----- .../Sources/Home/HomeWeeklyChartView.swift | 12 +++---- 9 files changed, 129 insertions(+), 67 deletions(-) diff --git a/SodaLive/Sources/Content/All/ByTheme/ContentAllByThemeView.swift b/SodaLive/Sources/Content/All/ByTheme/ContentAllByThemeView.swift index f723ecc..9cc1c26 100644 --- a/SodaLive/Sources/Content/All/ByTheme/ContentAllByThemeView.swift +++ b/SodaLive/Sources/Content/All/ByTheme/ContentAllByThemeView.swift @@ -12,12 +12,6 @@ struct ContentAllByThemeView: View { let themeId: Int - let columns = [ - GridItem(.flexible(), alignment: .top), - GridItem(.flexible(), alignment: .top), - GridItem(.flexible(), alignment: .top) - ] - var body: some View { NavigationView { BaseView(isLoading: $viewModel.isLoading) { @@ -88,10 +82,25 @@ struct ContentAllByThemeView: View { .padding(.vertical, 13.3) .padding(.horizontal, 20) + let horizontalPadding: CGFloat = 16 + let gridSpacing: CGFloat = 16 + let itemSize = (screenSize().width - (horizontalPadding * 2) - gridSpacing) / 2 + ScrollView(.vertical, showsIndicators: false) { - LazyVGrid(columns: columns, spacing: 32) { + LazyVGrid( + columns: Array( + repeating: GridItem( + .flexible(), + spacing: gridSpacing, + alignment: .topLeading + ), + count: 2 + ), + alignment: .leading, + spacing: gridSpacing + ) { ForEach(0..