UIRotationGestureRecognizer is a concrete subclass of UIGestureRecognizer that looks for rotation gestures involving two touches. When the user moves the fingers opposite each other in a circular motion, the underlying view should rotate in a corresponding direction and speed.


Rotation is a continuous gesture. It begins when two touches have moved enough to be considered a rotation. The gesture changes when a finger moves while the two fingers are down. It ends when both fingers have lifted. At each stage in the gesture, the gesture recognizer sends its action message.


Interpreting the Gesture

var rotation: CGFloat

The rotation of the gesture in radians.

var velocity: CGFloat

The velocity of the rotation gesture in radians per second.


Inherits From

Conforms To