<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/Markup/rotation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit6MarkupP8rotation14CoreFoundation7CGFloatVvp"
  },
  "title" : "rotation"
}
-->

# rotation

The element’s rotation around the center of its frame.

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

## Discussion

Together with `frame` this defines the element’s position in its parent.

---

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)