UIPanGestureRecognizer
extension UIPanGestureRecognizer
-
A convenience initializer for a UIPanGestureRecognizer so that it can be configured with a single line of code.
Declaration
Swift
public convenience init(minTouches: Int = 1, maxTouches: Int = .max, handler: @escaping (_ gesture: UIPanGestureRecognizer) -> Void)Parameters
minTouchesDefaults UIPanGestureRecognizer’s
minimumNumberOfTouchesproperty valuemaxTouchesDefaults UIPanGestureRecognizer’s
maximumNumberOfTouchesproperty valuehandlerThe closure that is called when the gesture is recognized
View on GitHub
UIPanGestureRecognizer Extension Reference