Tells your view that the layout object of the collection view is about to change.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The current layout object associated with the collection view.
The new layout object that is about to be applied to the collection view.
The default implementation of this method does nothing. Subclasses can override this method and use it to prepare for the change in layouts.