---
title: collectionViewLayout
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewcontroller/collectionviewlayout
---

# collectionViewLayout

The layout object used to initialize the collection view controller.

## Declaration

```swift
var collectionViewLayout: UICollectionViewLayout { get }
```

## Discussion

Discussion This property contains the layout object you passed to the init(collectionViewLayout:) method. The layout object in this property isn’t updated to reflect changes to the collection view itself. You can use this property to refer to the layout object you originally configured the collection view to use.

## See Also

### Getting the collection view

- [collectionView](uikit/uicollectionviewcontroller/collectionview.md)
