Instance Property


The gesture-recognizer objects currently attached to the view.


var gestureRecognizers: [UIGestureRecognizer]? { get set }


Each of these objects is an instance of a subclass of the abstract base class UIGestureRecognizer. The default value of this property is nil. If you add a gesture recognizer and then remove it, the value of the property is an empty array.

See Also

Managing Gesture Recognizers

func addGestureRecognizer(UIGestureRecognizer)

Attaches a gesture recognizer to the view.

func removeGestureRecognizer(UIGestureRecognizer)

Detaches a gesture recognizer from the receiving view.

func gestureRecognizerShouldBegin(UIGestureRecognizer) -> Bool

Asks the view if the gesture recognizer should be allowed to continue tracking touch events.