---
title: bounds
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewlayoutattributes/bounds
---

# bounds

The bounds of the item.

## Declaration

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

## Discussion

Discussion When setting the bounds, the origin of the bounds rectangle must always be at (0, 0). Changing the bounds rectangle also changes the value in the size property to match the new bounds size.

## See Also

### Accessing the layout attributes

- [frame](uikit/uicollectionviewlayoutattributes/frame.md)
- [center](uikit/uicollectionviewlayoutattributes/center.md)
- [size](uikit/uicollectionviewlayoutattributes/size.md)
- [transform3D](uikit/uicollectionviewlayoutattributes/transform3d.md)
- [transform](uikit/uicollectionviewlayoutattributes/transform.md)
- [alpha](uikit/uicollectionviewlayoutattributes/alpha.md)
- [zIndex](uikit/uicollectionviewlayoutattributes/zindex.md)
- [isHidden](uikit/uicollectionviewlayoutattributes/ishidden.md)
