Returns a context object that identifies the items that were moved
- iOS 9.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
The final locations of the items. For cancelled interactions, these index paths correspond to the original index paths of the items.
The previous locations of the items. This parameter contains the last set of index paths reported by the collection view during the movement sequence.
A Boolean value indicating whether the interactive movement ended successfully or was cancelled.
An invalidation context that includes information about what changes need to be made to the layout.
The layout object uses this method to retrieve invalidation contexts when an interactive move of one or more items ends, either because the move was successful or because it was cancelled by the user. The default implementation creates an instance of the class provided by the
invalidation class method, fills it with the provided information, and returns it. If you want to use a custom invalidation context object with your layout, always override that method and return your custom class.
Subclasses can override this method and use it to perform additional configuration of the invalidation context before returning it. In your custom implementation, call
super so that the parent class can perform the basic configuration of the object.