Attaches a gesture recognizer to the view.
- macOS 10.10+
The gesture recognizer to attach to the view. This parameter must not be
Attaching a gesture recognizer to a view defines the scope of the represented gesture, causing it to receive touches occurring only in the view or one of its subviews. The view establishes a strong reference to the specified gesture recognizer.