Returns the layout attributes for the specified decoration view.
SDKs
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
func layoutAttributesForDecorationView(ofKind elementKind: String, at indexPath: Index Path) -> UICollection View Layout Attributes?
Parameters
decorationViewKind
A string that identifies the type of the decoration view.
indexPath
The index path of the decoration view.
Return Value
A layout attributes object containing the information to apply to the decoration view.
Discussion
If your layout object defines any decoration views, you must override this method and use it to return layout information for those views.