---
title: indexPathsForVisibleRows
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableview/indexpathsforvisiblerows
---

# indexPathsForVisibleRows

An array of index paths, each identifying a visible row in the table view.

## Declaration

```swift
var indexPathsForVisibleRows: [IndexPath]? { get }
```

## Discussion

Discussion The value of this property is an array of NSIndexPath objects each representing a row index and section index that together identify a visible row in the table view. If no rows are visible, the value is nil.

## See Also

### Getting cells and section-based views

- [cellForRow(at:)](uikit/uitableview/cellforrow(at:).md)
- [headerView(forSection:)](uikit/uitableview/headerview(forsection:).md)
- [footerView(forSection:)](uikit/uitableview/footerview(forsection:).md)
- [indexPath(for:)](uikit/uitableview/indexpath(for:).md)
- [indexPathForRow(at:)](uikit/uitableview/indexpathforrow(at:).md)
- [indexPathsForRows(in:)](uikit/uitableview/indexpathsforrows(in:).md)
- [visibleCells](uikit/uitableview/visiblecells.md)
