---
title: "indexPath(forSupplementaryView:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicollectionview/indexpath(forsupplementaryview:)"
---

# indexPath(forSupplementaryView:)

Gets the index path of the specified supplementary view.

## Declaration

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

## Parameters

- `supplementaryView`: The supplementary or decoration view whose index path you want.

## Return Value

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