Compositional Layout Objects

Compose your layout from a set of objects that support more adaptive and flexible arragnements.

See Also

Layouts

Customizing Collection View Layouts

Customize a view layout by changing the size of cells in the flow or implementing a mosaic style.

UICollectionViewLayout

An abstract base class for generating layout information for a collection view.

UICollectionViewFlowLayout

A concrete layout object that organizes items into a grid with optional header and footer views for each section.

UICollectionViewTransitionLayout

A special type of layout object that lets you implement behaviors when changing from one layout to another in your collection view.

UICollectionViewLayoutAttributes

A layout object that manages the layout-related attributes for a given item in a collection view.

Using Collection View Compositional Layouts and Diffable Data Sources

Learn how to bring complex, high-performance layouts to your app, and simplify updating and managing your UI.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software