From 6744ed63f7ae5419bd654b5fb040703372729bd8 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: Tue, 10 Dec 2024 15:24:14 +0900 Subject: [PATCH] =?UTF-8?q?[design]=20#167=20PokitListButton=20=EB=94=94?= =?UTF-8?q?=EC=9E=90=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projects/DSKit/Sources/Components/PokitListButton.swift | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Projects/DSKit/Sources/Components/PokitListButton.swift b/Projects/DSKit/Sources/Components/PokitListButton.swift index bf1fb69e..67ef0dfd 100644 --- a/Projects/DSKit/Sources/Components/PokitListButton.swift +++ b/Projects/DSKit/Sources/Components/PokitListButton.swift @@ -38,7 +38,7 @@ public struct PokitListButton: View { HStack { switch type { case let .default(icon, iconColor), - let .bottomSheet(icon, iconColor), + let .bottomSheet(icon, iconColor, _), let .subText(icon, iconColor, _): Text(title) .pokitFont(.b1(.m)) @@ -76,9 +76,9 @@ public struct PokitListButton: View { } } .padding(.horizontal, 24) - .padding(.vertical, 16) + .padding(.vertical, 20) .background(alignment: .bottom) { - if case .bottomSheet = type { + if case let .bottomSheet(_, _, isLast) = type, !isLast { Rectangle() .fill(.pokit(.border(.tertiary))) .frame(height: 1) @@ -90,10 +90,9 @@ public struct PokitListButton: View { extension PokitListButton { public enum ListButtonType { case `default`(icon: PokitImage, iconColor: Color) - case bottomSheet(icon: PokitImage, iconColor: Color) + case bottomSheet(icon: PokitImage, iconColor: Color, isLast: Bool = false) case subText(icon: PokitImage, iconColor: Color, subeText: String) case toggle(subeText: String) - } }