Contents

shouldRequireFailure(of:)

Overridden to indicate that the receiver requires the specified gesture recognizer to fail.

Declaration

func shouldRequireFailure(of otherGestureRecognizer: UIGestureRecognizer) -> Bool

Parameters

  • otherGestureRecognizer:

    An instance of a subclass of UIGestureRecognizer.

Return Value

true to set up the failure requirement; otherwise, false.

Discussion

Overriding this method allows a subclass to define a class-wide failure requirement.

See Also

Implementing subclasses