---
title: visibleCells
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionview/visiblecells
---

# visibleCells

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

## Declaration

```swift
var visibleCells: [UICollectionViewCell] { get }
```

## Return Value

Return Value An array of UICollectionViewCell objects. If no cells are visible, this method returns an empty array.

## Discussion

Discussion This method returns the complete list of visible cells displayed by the collection view.

## See Also

### Related Documentation

- [indexPathsForVisibleItems](uikit/uicollectionview/indexpathsforvisibleitems.md)

### Getting the state of the collection view

- [numberOfSections](uikit/uicollectionview/numberofsections.md)
- [numberOfItems(inSection:)](uikit/uicollectionview/numberofitems(insection:).md)
