Contents

layoutAttributesForSupplementaryView(ofKind:at:)

A convenience method for returning the layout attributes for a collection view supplementary view.

Declaration

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

Parameters

  • kind:

    A string that identifies the type of supplementary view whose layout attributes you want.

  • indexPath:

    The index path for the cell whose supplementary view layout attributes you want.

Return Value

The collection view layout attributes for the specified supplementary view.

See Also

Working with collection views