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

# size

The size of the element.

## Declaration

```swift
var size: NSSize { get set }
```

## Discussion

Discussion Setting the value of this property also updates the value in the frame property.

## See Also

### Accessing the Layout Attributes

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