Instance Property


The view to which the gesture recognizer is attached.


var view: NSView? { get }


To attach a gesture recognizer to a view, call the addGestureRecognizer(_:) method of the view. If the gesture recognizer is not attached to a view, the value in this property is nil.

See Also

Accessing the Recognizer’s State

var state: NSGestureRecognizer.State

The current state of the gesture recognizer.

var isEnabled: Bool

A Boolean value indicating whether the gesture recognizer is able to handle events.