---
title: frame
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscollectionviewlayoutattributes/frame
---

# frame

The frame rectangle of the element.

## Declaration

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

## Discussion

Discussion The frame rectangle is measured in points and specified in the collection view’s coordinate system. Setting the value of this property also updates the value in the size property.

## See Also

### Accessing the Layout Attributes

- [size](appkit/nscollectionviewlayoutattributes/size.md)
- [alpha](appkit/nscollectionviewlayoutattributes/alpha.md)
- [isHidden](appkit/nscollectionviewlayoutattributes/ishidden.md)
- [zIndex](appkit/nscollectionviewlayoutattributes/zindex.md)
