Contents

layoutAttributesForDecorationView(ofKind:at:)

Retrieves the layout attributes for the specified decoration view.

Declaration

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

Parameters

  • elementKind:

    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.

See Also

Providing layout attributes