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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software