From 0eee16883739252085437359d62e314ec3331603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=84=ED=98=95?= <108233361+ShapeKim98@users.noreply.github.com> Date: Sat, 26 Oct 2024 21:35:35 +0900 Subject: [PATCH] =?UTF-8?q?[design]=20#154=20CategoryDetail=20LazyVGrid?= =?UTF-8?q?=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 --- Projects/DSKit/Sources/Components/PokitLinkCard.swift | 2 +- .../FeatureCategoryDetail/Sources/CategoryDetailView.swift | 5 ++++- Projects/Feature/FeaturePokit/Sources/PokitRootView.swift | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Projects/DSKit/Sources/Components/PokitLinkCard.swift b/Projects/DSKit/Sources/Components/PokitLinkCard.swift index a282e330..a44dc037 100644 --- a/Projects/DSKit/Sources/Components/PokitLinkCard.swift +++ b/Projects/DSKit/Sources/Components/PokitLinkCard.swift @@ -155,7 +155,7 @@ public struct PokitLinkCard: View { let edge: Edge.Set = isFirst ? .bottom : isLast ? .top : .vertical self - .padding(edge, 20) + .padding(.bottom, 20) .background(alignment: .bottom) { if !isLast { divider diff --git a/Projects/Feature/FeatureCategoryDetail/Sources/CategoryDetailView.swift b/Projects/Feature/FeatureCategoryDetail/Sources/CategoryDetailView.swift index d424057a..8c32f91a 100644 --- a/Projects/Feature/FeatureCategoryDetail/Sources/CategoryDetailView.swift +++ b/Projects/Feature/FeatureCategoryDetail/Sources/CategoryDetailView.swift @@ -150,7 +150,10 @@ private extension CategoryDetailView { } } else { ScrollView(showsIndicators: false) { - LazyVStack(spacing: 0) { + LazyVGrid( + columns: [ .init(.adaptive(minimum: 300, maximum: .infinity))], + spacing: 20 + ) { ForEach(contents) { content in let isFirst = content == contents.first let isLast = content == contents.last diff --git a/Projects/Feature/FeaturePokit/Sources/PokitRootView.swift b/Projects/Feature/FeaturePokit/Sources/PokitRootView.swift index 05b8a1dc..9f5a9cdf 100644 --- a/Projects/Feature/FeaturePokit/Sources/PokitRootView.swift +++ b/Projects/Feature/FeaturePokit/Sources/PokitRootView.swift @@ -190,7 +190,7 @@ private extension PokitRootView { @ViewBuilder func unclassifiedList(_ unclassifiedContents: IdentifiedArrayOf) -> some View { ScrollView { - LazyVStack(spacing: 0) { + LazyVStack(spacing: 20) { ForEach(unclassifiedContents) { content in let isFirst = content == unclassifiedContents.first let isLast = content == unclassifiedContents.last