gestureRecognizer(_:shouldReceive:)
Asks the delegate if a gesture recognizer should receive an object representing a press.
Declaration
optional func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive press: UIPress) -> BoolParameters
- gestureRecognizer:
An instance of a subclass of the abstract base class Uigesturerecognizer.
- press:
A Uipress object from the current press sequence.
Return Value
true (the default) to allow the gesture recognizer to examine the press object, or false to prevent the gesture recognizer from seeing this press object.
Discussion
UIKit calls this method before the pressesBegan(_:with:) method of the gesture recognizer.