<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRotationGestureRecognizer/rotation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSRotationGestureRecognizer(py)rotation"
  },
  "title" : "rotation"
}
-->

# rotation

The rotation of the gesture in radians.

```
var rotation: CGFloat { get set }
```

## Discussion

This property contains the current rotation in effect for the gesture. Changing the value in this property also updates the value in the [`rotationInDegrees`](/documentation/AppKit/NSRotationGestureRecognizer/rotationInDegrees) property.

---

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)