Contents

layoutAttributesForSupplementaryView(ofKind:at:)

Retrieves the layout attributes for the specified supplementary view.

Declaration

func layoutAttributesForSupplementaryView(ofKind elementKind: String, at indexPath: IndexPath) -> UICollectionViewLayoutAttributes?

Parameters

  • elementKind:

    A string that identifies the type of the supplementary view.

  • indexPath:

    The index path of the view.

Return Value

A layout attributes object containing the information to apply to the supplementary view.

Discussion

If your layout object defines any supplementary views, you must override this method and use it to return layout information for those views.

See Also

Providing layout attributes