<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICollectionView/indexPathsForVisibleItems",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICollectionView(py)indexPathsForVisibleItems"
  },
  "title" : "indexPathsForVisibleItems"
}
-->

# indexPathsForVisibleItems

An array of the visible items in the collection view.

```
var indexPathsForVisibleItems: [IndexPath] { get }
```

## Discussion

The value of this property is an unsorted array of <doc://com.apple.documentation/documentation/Foundation/NSIndexPath> objects, each of which corresponds to a visible cell in the collection view. This array doesn’t include any supplementary views that are currently visible. If there are no visible items, the value of this property is an empty array.

## See Also

[`visibleCells`](/documentation/UIKit/UICollectionView/visibleCells)

An array of visible cells currently displayed by the collection view.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)