Asks the delegate if the current gesture recognizer must wait to recognize its gesture until the specified gesture recognizer fails.
- macOS 10.10+
The gesture recognizer that might need to wait to recognize its gesture. This is the object with which the delegate is associated.
The gesture recognizer that must fail before the object in
gesturecan recognize its gesture.
other must fail before
gesture is allowed to recognize its gesture. If you do not implement this method, the default return value is
This method is called once per attempt to recognize, so you can change the failure requirements dynamically. The two gesture recognizers do not have to belong to the same view hierarchy.
true is guaranteed to set up the failure requirement; returning
false does not prevent the failure requirement from being set up by the other gesture recognizer.