Initializes a collection view controller and configures the collection view with the provided layout.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The layout object to associate with the collection view. The layout controls how the collection view presents its cells and supplementary views.
UICollection object or
nil if the object could not be created.