---
title: UIRotationGestureRecognizer
framework: uikit
role: symbol
role_heading: Class
path: uikit/uirotationgesturerecognizer
---

# UIRotationGestureRecognizer

A continuous gesture recognizer that interprets rotation gestures involving two touches.

## Declaration

```swift
@MainActor class UIRotationGestureRecognizer
```

## Mentioned in

Handling rotation gestures

## Overview

Overview UIRotationGestureRecognizer is a concrete subclass of UIGestureRecognizer. The user must press two fingers on a view while rotating it. When the user moves the fingers opposite each other in a circular motion, the underlying view rotates in a corresponding direction and speed. Rotation is a continuous gesture. It begins when the user moves the two fingers enough to create a rotation gesture. The gesture changes when a finger moves while both fingers remain touching. It ends when the user lifts both fingers. At each stage in the gesture, the gesture recognizer sends its action message.

## Topics

### Interpreting the gesture

- [rotation](uikit/uirotationgesturerecognizer/rotation.md)
- [velocity](uikit/uirotationgesturerecognizer/velocity.md)

## Relationships

### Inherits From

- [UIGestureRecognizer](uikit/uigesturerecognizer.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Standard gestures

- [Handling UIKit gestures](uikit/handling-uikit-gestures.md)
- [Coordinating multiple gesture recognizers](uikit/coordinating-multiple-gesture-recognizers.md)
- [Adopting hover support for Apple Pencil](uikit/adopting-hover-support-for-apple-pencil.md)
- [Supporting gesture interaction in your apps](uikit/supporting-gesture-interaction-in-your-apps.md)
- [UIHoverGestureRecognizer](uikit/uihovergesturerecognizer.md)
- [UILongPressGestureRecognizer](uikit/uilongpressgesturerecognizer.md)
- [UIPanGestureRecognizer](uikit/uipangesturerecognizer.md)
- [UIPinchGestureRecognizer](uikit/uipinchgesturerecognizer.md)
- [UIScreenEdgePanGestureRecognizer](uikit/uiscreenedgepangesturerecognizer.md)
- [UISwipeGestureRecognizer](uikit/uiswipegesturerecognizer.md)
- [UITapGestureRecognizer](uikit/uitapgesturerecognizer.md)
