Notifies the layout object that the contents of the collection view are about to change.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
An array of
UICollectionobjects that identify the changes being made.
View Update Item
When items are inserted or deleted, the collection view notifies its layout object so that it can adjust the layout as needed. The first step in that process is to call this method to let the layout object know what changes to expect. After that, additional calls are made to gather layout information for inserted, deleted, and moved items that are going to be animated around the collection view.