---
title: rotation
framework: paperkit
role: symbol
role_heading: Instance Property
path: paperkit/markup/rotation
---

# rotation

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

## Declaration

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

## Discussion

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

## See Also

### Laying out

- [frame](paperkit/markup/frame.md)
- [renderFrame](paperkit/markup/renderframe.md)
- [applyTransform(_:)](paperkit/markup/applytransform(_:).md)
