---
title: frame
framework: xcuiautomation
role: symbol
role_heading: Instance Property
path: xcuiautomation/xcuielementattributes/frame
---

# frame

The frame of the element in the screen’s coordinate space.

## Declaration

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

## See Also

### Size

- [horizontalSizeClass](xcuiautomation/xcuielementattributes/horizontalsizeclass.md)
- [verticalSizeClass](xcuiautomation/xcuielementattributes/verticalsizeclass.md)
- [XCUIElement.SizeClass](xcuiautomation/xcuielement/sizeclass.md)
