Class

NSCollectionViewTransitionLayout

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

Overview

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

Symbols

Initializing the Transition Layout Object

init(currentLayout: NSCollectionViewLayout, nextLayout: NSCollectionViewLayout)

Initializes and returns the transition layout object.

Updating the Transition Information

var transitionProgress: CGFloat

The completion percentage of the transition.

func updateValue(CGFloat, forAnimatedKey: String)

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

func value(forAnimatedKey: String)

Returns the most recently set value for the specified key.

Accessing the Layout Objects

var currentLayout: NSCollectionViewLayout

The collection view’s current layout object.

var nextLayout: NSCollectionViewLayout

The collection view’s new layout object.

Relationships

Conforms To