---
title: indexPath
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewlayoutattributes/indexpath
---

# indexPath

The index path of the item in the collection view.

## Declaration

```swift
var indexPath: IndexPath { get set }
```

## Discussion

Discussion The index path contains the index of the section and the index of the item within that section. These two values uniquely identify the position of the corresponding item in the collection view.

## See Also

### Identifying the referenced item

- [representedElementKind](uikit/uicollectionviewlayoutattributes/representedelementkind.md)
- [representedElementCategory](uikit/uicollectionviewlayoutattributes/representedelementcategory.md)
- [UICollectionView.ElementCategory](uikit/uicollectionview/elementcategory.md)
