File tree Expand file tree Collapse file tree
Projects/DSKit/Sources/Components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,17 +44,21 @@ public extension PokitProfileBottomSheet {
4444 transaction: . init( animation: . pokitDissolve)
4545 ) { phase in
4646 if let image = phase. image {
47+ let isSelected = item. imageURL == selectedImage? . imageURL
48+
4749 Button ( action: { delegateSend ? ( . 이미지_선택했을때( item) ) } ) {
4850 image
4951 . resizable ( )
5052 . clipShape ( RoundedRectangle ( cornerRadius: 12 , style: . continuous) )
5153 }
5254 . buttonStyle ( . plain)
53- . overlay {
54- if let selectedImage, item. imageURL == selectedImage. imageURL {
55- RoundedRectangle ( cornerRadius: 12 , style: . continuous)
56- . stroke ( . pokit( . border( . brand) ) , lineWidth: 2 )
57- }
55+ . overlay ( if: isSelected) {
56+ RoundedRectangle ( cornerRadius: 12 , style: . continuous)
57+ . stroke ( . pokit( . border( . brand) ) , lineWidth: 2 )
58+ }
59+ . overlay ( if: !isSelected && item. id == 33 ) {
60+ RoundedRectangle ( cornerRadius: 12 , style: . continuous)
61+ . stroke ( . pokit( . border( . tertiary) ) , lineWidth: 2 )
5862 }
5963 } else {
6064 PokitSpinner ( )
You can’t perform that action at this time.
0 commit comments