<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIRotationGestureRecognizer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIRotationGestureRecognizer"
  },
  "title" : "UIRotationGestureRecognizer"
}
-->

# UIRotationGestureRecognizer

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

```
@MainActor class UIRotationGestureRecognizer
```

## Overview

[`UIRotationGestureRecognizer`](/documentation/UIKit/UIRotationGestureRecognizer) is a concrete subclass of [`UIGestureRecognizer`](/documentation/UIKit/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`](/documentation/UIKit/UIRotationGestureRecognizer/rotation)

The rotation of the gesture in radians.

[`velocity`](/documentation/UIKit/UIRotationGestureRecognizer/velocity)

The velocity of the rotation gesture in radians per second.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)