supplementaryView(forElementKind:at:)
Gets the supplementary view at the specified index path.
Declaration
func supplementaryView(forElementKind elementKind: String, at indexPath: IndexPath) -> UICollectionReusableView?Parameters
- elementKind:
The kind of supplementary view to locate. This value is defined by the layout object. This parameter must not be
nil. - indexPath:
The index path of the supplementary view. This parameter must not be
nil.
Return Value
The specified supplementary view, or nil if the view could not be found.