Skip to content

Commit

Permalink
[design] #154 RemindView 링크목록 spacing 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Oct 27, 2024
1 parent 53c0cd4 commit 76d041f
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions Projects/Feature/FeatureRemind/Sources/Remind/RemindView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,18 @@ extension RemindView {
.padding(.bottom, 16)
}

ForEach(unreadContents, id: \.id) { content in
let isFirst = content == unreadContents.elements.first
let isLast = content == unreadContents.elements.last

PokitLinkCard(
link: content,
action: { send(.컨텐츠_항목_눌렀을때(content: content)) },
kebabAction: { send(.컨텐츠_항목_케밥_버튼_눌렀을때(content: content)) }
)
.divider(isFirst: isFirst, isLast: isLast)
VStack(spacing: 20) {
ForEach(unreadContents, id: \.id) { content in
let isFirst = content == unreadContents.elements.first
let isLast = content == unreadContents.elements.last

PokitLinkCard(
link: content,
action: { send(.컨텐츠_항목_눌렀을때(content: content)) },
kebabAction: { send(.컨텐츠_항목_케밥_버튼_눌렀을때(content: content)) }
)
.divider(isFirst: isFirst, isLast: isLast)
}
}
}
}
Expand All @@ -300,16 +302,18 @@ extension RemindView {
)
.padding(.top, 16)
} else {
ForEach(favoriteContents, id: \.id) { content in
let isFirst = content == favoriteContents.elements.first
let isLast = content == favoriteContents.elements.last

PokitLinkCard(
link: content,
action: { send(.컨텐츠_항목_눌렀을때(content: content)) },
kebabAction: { send(.컨텐츠_항목_케밥_버튼_눌렀을때(content: content)) }
)
.divider(isFirst: isFirst, isLast: isLast)
VStack(spacing: 20) {
ForEach(favoriteContents, id: \.id) { content in
let isFirst = content == favoriteContents.elements.first
let isLast = content == favoriteContents.elements.last

PokitLinkCard(
link: content,
action: { send(.컨텐츠_항목_눌렀을때(content: content)) },
kebabAction: { send(.컨텐츠_항목_케밥_버튼_눌렀을때(content: content)) }
)
.divider(isFirst: isFirst, isLast: isLast)
}
}
}
}
Expand Down

0 comments on commit 76d041f

Please sign in to comment.