Contents

init(collectionViewLayout:)

Initializes a collection view controller and configures the collection view with the provided layout.

Declaration

init(collectionViewLayout layout: UICollectionViewLayout)

Parameters

  • layout:

    The layout object to associate with the collection view. The layout controls how the collection view presents its cells and supplementary views.

Return Value

An initialized UICollectionViewController object or nil if the object could not be created.

See Also

Creating a collection view controller