Creates and returns a layout attributes object that represents the specified decoration view.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The kind identifier for the specified decoration view.
An index path related to the decoration view.
A new layout attributes object whose precise type matches the type of the class used to call this method.
Use this method to create a layout attributes object for a decoration view in the collection view. Decoration views are a type of supplementary view but do not present data that is managed by the collection view’s data source. Instead, they mostly present visual adornments for a section or for the entire collection view.
It is up to you to decide how to use the
index parameter to identify a given decoration view. Typically, you use the
decoration parameter to identify the type of the decoration view and the
index information to distinguish between different instances of that view.