Contents

indexPath(forSupplementaryView:)

Gets the index path of the specified supplementary view.

Declaration

func indexPath(forSupplementaryView supplementaryView: UICollectionReusableView) -> IndexPath?

Parameters

  • supplementaryView:

    The supplementary or decoration view whose index path you want.

Return Value

The index path of the specified view if it is in the collection view, else nil.