<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionViewLayoutAttributes/frame",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCollectionViewLayoutAttributes(py)frame"
  },
  "title" : "frame"
}
-->

# frame

The frame rectangle of the element.

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

## 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`](/documentation/AppKit/NSCollectionViewLayoutAttributes/size) property.

---

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)