digit
digit

Reputation: 197

WKTapGestureRecognizer Two taps triggering one also

A simple question, I don't even need to post the code. I did some research on a UITapGestureRecognizer, and noticed there is a require fail method that makes it so when you tap twice it doesn't trigger tap one as well.... I have two tap gesture recognizers on my watch, one is for one tap and the other is for two taps. When I tap twice, it also triggers the tap one GestureRecognizer. Anyone know how to avoid this situation?

Upvotes: 3

Views: 525

Answers (1)

Bhargavi
Bhargavi

Reputation: 515

In case of WatchOS, there is Must Fail First option in the storyboard which you can drag to the other WKTapGestureRecognizer that should fail for the one-tap gesture to succeed.Attribute inspector

you can find this option in the Attribute inspector of the gesture recognizer object

Upvotes: 1

Related Questions