Skip to content

Commit b047499

Browse files
authored
Merge pull request #169 from boostcampwm-2024/fix/#164-block-sticker-multi-touch
[FIX/#164] 스티커 동시 터치 방지
2 parents e7b8b2e + 7875c6c commit b047499

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

PhotoGether/PresentationLayer/DesignSystem/DesignSystem/Source/PTGGrayButton.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public final class PTGGrayButton: UIButton {
4040
private func configureUI() {
4141
backgroundColor = .gray85
4242
layer.cornerRadius = 12
43+
isExclusiveTouch = true
4344

4445
stackView.axis = .horizontal
4546
stackView.distribution = .equalSpacing

PhotoGether/PresentationLayer/EditPhotoRoomFeature/EditPhotoRoomFeature/Source/EditPhotoHostBottomView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ final class EditPhotoHostBottomView: UIView {
6969
nextButton.backgroundColor = PTGColor.primaryGreen.color
7070
nextButton.setImage(PTGImage.chevronRightBlack.image, for: .normal)
7171
nextButton.layer.cornerRadius = 8
72+
nextButton.isExclusiveTouch = true
7273
}
7374
}

PhotoGether/PresentationLayer/EditPhotoRoomFeature/EditPhotoRoomFeature/Source/View/StickerView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ final class StickerView: UIView {
8080
}
8181

8282
private func configureUI() {
83+
isExclusiveTouch = true
84+
8385
let deleteButtonImage = PTGImage.xmarkIcon.image
8486
layerView.layer.borderWidth = 2
8587
layerView.layer.borderColor = PTGColor.primaryGreen.color.cgColor
@@ -88,11 +90,13 @@ final class StickerView: UIView {
8890
deleteButton.setImage(deleteButtonImage, for: .normal)
8991
deleteButton.layer.cornerRadius = deleteButton.bounds.width / 2
9092
deleteButton.clipsToBounds = true
93+
deleteButton.isExclusiveTouch = true
9194

9295
let resizeButtonImage = PTGImage.resizeIcon.image
9396
resizeButton.setImage(resizeButtonImage, for: .normal)
9497
resizeButton.layer.cornerRadius = resizeButton.bounds.width / 2
9598
resizeButton.clipsToBounds = true
99+
resizeButton.isExclusiveTouch = true
96100

97101
setImage(to: sticker.image)
98102
updateOwnerUI(owner: sticker.owner)

0 commit comments

Comments
 (0)