Class

NSCollectionViewTransitionLayout

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

Declaration

@interface NSCollectionViewTransitionLayout : NSCollectionViewLayout

Overview

Transition layout objects are commonly used to implement interactive transitions between layouts, where the transition itself is driven by a gesture recognizer.

Topics

Initializing the Transition Layout Object

- initWithCurrentLayout:nextLayout:

Initializes and returns the transition layout object.

Updating the Transition Information

transitionProgress

The completion percentage of the transition.

- updateValue:forAnimatedKey:

Sets the value of a key whose value you use during the animation.

- valueForAnimatedKey:

Returns the most recently set value for the specified key.

Accessing the Layout Objects

currentLayout

The collection view’s current layout object.

nextLayout

The collection view’s new layout object.

Relationships

See Also

Layouts

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.

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.

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.