Skip to content

Commit 00e3db9

Browse files
authored
Merge pull request #685 from sahbazali/master
Fix for #610 -> Flip and shot button should not able to clicked at the sime time.
2 parents 88cf5f9 + 3fad7c9 commit 00e3db9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/Pages/Photo/YPCameraVC.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ internal final class YPCameraVC: UIViewController, UIGestureRecognizerDelegate,
4848
v.shotButton.addTarget(self, action: #selector(shotButtonTapped), for: .touchUpInside)
4949
v.flipButton.addTarget(self, action: #selector(flipButtonTapped), for: .touchUpInside)
5050

51+
// Prevent flip and shot button clicked at the same time
52+
v.shotButton.isExclusiveTouch = true
53+
v.flipButton.isExclusiveTouch = true
54+
5155
// Focus
5256
let tapRecognizer = UITapGestureRecognizer(target: self, action: #selector(self.focusTapped(_:)))
5357
tapRecognizer.delegate = self

0 commit comments

Comments
 (0)