Contents

shouldBeRequiredToFail(by:)

Overridden to indicate that the current object must fail before the specified gesture recognizer begins recognizing its gesture.

Declaration

func shouldBeRequiredToFail(by otherGestureRecognizer: NSGestureRecognizer) -> Bool

Parameters

  • otherGestureRecognizer:

    The gesture recognizer that is not allowed to recognize its gesture until the current object fails.

Return Value

true to cause otherGestureRecognizer to wait until the current object fails before beginning its own gesture recognition.

Discussion

Using this method lets you define rules that apply to all instances of your custom gesture recognizer class.

See Also

Methods for Subclasses