UITapGestureRecognizer
extension UITapGestureRecognizer
-
A convenience initializer for a UITapGestureRecognizer so that it can be configured with a single line of code.
Declaration
Swift
public convenience init(tapsRequired: Int = 1, touchesRequired: Int = 1, handler: @escaping (_ gesture: UITapGestureRecognizer) -> Void)
Parameters
tapsRequired
Defaults UITapGestureRecognizer’s
numberOfTapsRequired
property valuetouchesRequired
Defaults UITapGestureRecognizer’s
numberOfTouchesRequired
property valuehandler
The closure that is called when the gesture is recognized