Instance Method

velocity(in:)

The velocity of the pan gesture in the coordinate system of the specified view.

Declaration

func velocity(in view: UIView?) -> CGPoint

Parameters

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.

See Also

Tracking the Location and Velocity of the Gesture

func translation(in: UIView?) -> CGPoint

The translation of the pan gesture in the coordinate system of the specified view.

func setTranslation(CGPoint, in: UIView?)

Sets the translation value in the coordinate system of the specified view.