Instance Property

delegate

The delegate of the gesture recognizer.

Declaration

weak var delegate: UIGestureRecognizerDelegate? { get set }

Discussion

The gesture recognizer maintains a weak reference to its delegate. The delegate must adopt the UIGestureRecognizerDelegate protocol and implement one or more of its methods.

See Also

Managing Gesture-Related Interactions

protocol UIGestureRecognizerDelegate

A set of methods implemented by the delegate of a gesture recognizer to fine-tune an app’s gesture-recognition behavior.