Returns the transition layout object to use when performing an animated change between different layouts.
- macOS 10.11+
The collection view whose layout object is changing.
The current layout object of the collection view. This is the starting point for the transition.
The new layout for the collection view.
The collection view transition layout object to use to perform the transition.
When changing layouts for a collection view, you can use this method to customize the transition layout object used to make the change. A transition layout object lets you customize the behavior of collection view elements when transitioning from one layout to the next. Normally, transitioning between layouts causes the assorted items and views to animate from their current locations directly to their new locations. By returning a custom transition object, you could have those elements follow a nonlinear path, use a different timing algorithm, or move items in response to touch events.
If you do not implement this method in your delegate object, the collection view uses a standard
UICollection object for the transition.
In OS X 10.11, this method is never called by the collection view.