@@ -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 {
9090extension 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