I created two Long Press Gesture Recognizers in IB, and created two IBActions for them.
@IBAction func longPressGesture(_ gesture: UILongPressGestureRecognizer) {
print("Do long press")
}
@IBAction func longPressTapGesture(_ gesture: UILongPressGestureRecognizer) {
print("Do something else")
}
longPressGesture is set to > 0.5, 0 taps, 1 touch.
longPressTapGesture is set to > 0.5, 1 tap, 1 touch.
So technically, when I start the app and just press down anywhere on the screen, I should get longPressGesture to fire.
Instead, the very first time after I started running the app, it's always the longPressTapGesture firing, no matter what gestures I use.
If I lift finger, then press down again, longPressGesture fires this time.
Any suggestions why longPressTapGesture is firing even though I'm just doing a single long press?
Thanks.