Skip to content

Commit

Permalink
[design] #154 CategoryDetail LazyVGrid로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Nov 6, 2024
1 parent 49c523f commit 0eee168
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Projects/DSKit/Sources/Components/PokitLinkCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public struct PokitLinkCard<Item: PokitLinkCardItem>: View {
let edge: Edge.Set = isFirst ? .bottom : isLast ? .top : .vertical

self
.padding(edge, 20)
.padding(.bottom, 20)
.background(alignment: .bottom) {
if !isLast {
divider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Projects/Feature/FeaturePokit/Sources/PokitRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private extension PokitRootView {
@ViewBuilder
func unclassifiedList(_ unclassifiedContents: IdentifiedArrayOf<BaseContentItem>) -> some View {
ScrollView {
LazyVStack(spacing: 0) {
LazyVStack(spacing: 20) {
ForEach(unclassifiedContents) { content in
let isFirst = content == unclassifiedContents.first
let isLast = content == unclassifiedContents.last
Expand Down

0 comments on commit 0eee168

Please sign in to comment.