Skip to content

Commit 6744ed6

Browse files
committed
[design] #167 PokitListButton 디자인 수정
1 parent 966ed1e commit 6744ed6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Projects/DSKit/Sources/Components/PokitListButton.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public struct PokitListButton: View {
3838
HStack {
3939
switch type {
4040
case let .default(icon, iconColor),
41-
let .bottomSheet(icon, iconColor),
41+
let .bottomSheet(icon, iconColor, _),
4242
let .subText(icon, iconColor, _):
4343
Text(title)
4444
.pokitFont(.b1(.m))
@@ -76,9 +76,9 @@ public struct PokitListButton: View {
7676
}
7777
}
7878
.padding(.horizontal, 24)
79-
.padding(.vertical, 16)
79+
.padding(.vertical, 20)
8080
.background(alignment: .bottom) {
81-
if case .bottomSheet = type {
81+
if case let .bottomSheet(_, _, isLast) = type, !isLast {
8282
Rectangle()
8383
.fill(.pokit(.border(.tertiary)))
8484
.frame(height: 1)
@@ -90,10 +90,9 @@ public struct PokitListButton: View {
9090
extension PokitListButton {
9191
public enum ListButtonType {
9292
case `default`(icon: PokitImage, iconColor: Color)
93-
case bottomSheet(icon: PokitImage, iconColor: Color)
93+
case bottomSheet(icon: PokitImage, iconColor: Color, isLast: Bool = false)
9494
case subText(icon: PokitImage, iconColor: Color, subeText: String)
9595
case toggle(subeText: String)
96-
9796
}
9897
}
9998

0 commit comments

Comments
 (0)