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

# frame

The element’s unrotated frame.

## Declaration

```swift
var frame: CGRect { get set }
```

## Discussion

Discussion Together with rotation this defines the element’s position in its parent. This won’t necessarily contain all the contents of an element, rotation and styling may cause the element to extend beyond this frame. Use renderFrame for an unrotated frame that contains the entire element.

## See Also

### Laying out

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