Instance Property


The view the gesture recognizer is attached to.


var view: UIView? { get }


You attach (or add) a gesture recognizer to a UIView object using the addGestureRecognizer(_:) method.

See Also

Getting the Recognizer’s State and View

var state: UIGestureRecognizer.State

The current state of the gesture recognizer.

var isEnabled: Bool

A Boolean property that indicates whether the gesture recognizer is enabled.

var buttonMask: UIEvent.ButtonMask

A bit mask of the button (or buttons) in the gesture represented by the receiver.

var modifierFlags: UIKeyModifierFlags

The bit mask of modifier flags in the gesture represented by the receiver.