Asks the delegate for the index path to use when moving an item.
- iOS 9.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The collection view making the request.
The item’s original index path.
The proposed index path of the item.
The index path you want to use for the item. If you do not implement this method, the collection view uses the index path in the
During the interactive moving of an item, the collection view calls this method to see if you want to provide a different index path than the proposed path. You might use this method to prevent the user from dropping the item in an invalid location. For example, you might prevent the user from dropping the item in a specific section.