Skip to content

Commit

Permalink
[design] #167 PokitListButton 디자인 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Dec 10, 2024
1 parent 966ed1e commit 6744ed6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Projects/DSKit/Sources/Components/PokitListButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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)
Expand All @@ -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)

}
}

Expand Down

0 comments on commit 6744ed6

Please sign in to comment.