Returns the final layout information for an item that is about to be removed from the collection view.
- iOS 6.0+
- tvOS 9.0+
The index path of the item being deleted.
A layout attributes object that describes the position of the cell to use as the end point for animating its removal.
This method is called after the
prepare(for method and before the
finalize method for any items that are about to be deleted. Your implementation should return the layout information that describes the final position and state of the item. The collection view uses this information as the end point for any animations. (The starting point of the animation is the item’s current location.) If you return
nil, the layout object uses the same attributes for both the start and end points of the animation.
The default implementation of this method returns