removeGestureRecognizer(_:)
Detaches a gesture recognizer from the view.
Declaration
func removeGestureRecognizer(_ gestureRecognizer: NSGestureRecognizer)Parameters
- gestureRecognizer:
The gesture recognizer to remove. This parameter must not be
nil.
Discussion
Removing a gesture recognizer also removes the strong reference to it held by the view.