Returns the ending layout information for a supplementary view being removed from the collection view.
- macOS 10.11+
The type of the decoration view being removed.
The index path of the supplementary view being removed. You can use this path to identify the view internally.
The layout attributes object that describes the supplementary view’s position and properties at the end of animations.
When your layout object removes supplementary views in response to other changes in the collection view, the collection view calls this method for each supplementary view you remove. Use this method to specify the layout attributes for the view after it has been removed. For example, you might return attributes that position the supplementary view offscreen or set its alpha to
0. The collection view uses the attributes you return as the end point for any animations. (The start point of the animation is the view’s current location and attributes.) If you return
nil, the layout uses the supplementary view’s current attributes for both the start point and end point of the animation.
The default implementation of this method returns
nil. Subclasses are expected to override this method, as needed, and provide any initial attributes.