Contents

indexPathsForVisibleItems

An array of the visible items in the collection view.

Declaration

var indexPathsForVisibleItems: [IndexPath] { get }

Discussion

The value of this property is an unsorted array of 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

Related Documentation

Locating items and views in the collection view