velocity(in:)
Interprets the velocity of the pan gesture in the coordinate system of the specified view.
Declaration
func velocity(in view: UIView?) -> CGPointParameters
- view:
The view in whose coordinate system the velocity of the pan gesture is computed.
Return Value
The velocity of the pan gesture, which is expressed in points per second. The velocity is broken into horizontal and vertical components.