Skip to content

Commit dfc1f39

Browse files
committed
[fix] #208 프로필 기본 이미지 가장자리 추가
1 parent cccfd97 commit dfc1f39

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

Projects/DSKit/Sources/Components/PokitProfileBottomSheet.swift

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)