collectionViewLayout
The layout object used to initialize the collection view controller.
Declaration
var collectionViewLayout: UICollectionViewLayout { get }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.