Returns the final layout information for a supplementary view that is about to be removed from the collection view.
- iOS 6.0+
- tvOS 9.0+
A string that identifies the type of supplementary view.
The index path of the view being deleted.
A layout attributes object that describes the position of the supplementary view 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 supplementary views that are about to be deleted. Your implementation should return the layout information that describes the final position and state of the view. The collection view uses this information as the end point for any animations. (The starting point of the animation is the view’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