Instance Property

view

The view the gesture recognizer is attached to.

Declaration

var view: UIView? { get }

Discussion

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.