Instance Property


The rotation of the gesture in radians.


var rotation: CGFloat { get set }


You may set the rotation value to an arbitrary value; however, setting the rotation resets the velocity.

The rotation value is a single value that varies over time. It is not the delta value from the last time that the rotation was reported. Apply the rotation value to the state of the view when the gesture is first recognized—do not concatenate the value each time the handler is called.

See Also

Interpreting the Gesture

var velocity: CGFloat

The velocity of the rotation gesture in radians per second.