Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 212
digit Avatar asked Apr 27 '26 13:04

digit


1 Answers

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

like image 194
Bhargavi Avatar answered Apr 30 '26 03:04

Bhargavi