Sample Code

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.

Download

Overview

See Also

Layouts

NSCollectionViewFlowLayout

A layout that organizes items into a flexible and configurable arrangement.

NSCollectionViewDelegateFlowLayout

A set of methods that a delegate implements to provide layout information to a flow layout object in a collection view.

NSCollectionViewGridLayout

A layout that displays a single section of items in a row and column grid.

NSCollectionViewTransitionLayout

An object that implements custom behaviors when changing from one layout to another in a collection view.

NSCollectionViewLayoutAttributes

An object that contains layout-related attributes for an element in a collection view.

NSCollectionViewLayout

An abstract base class that you subclass and use to generate layout information for a collection view.