Instance Property

visibleCells

Returns an array of visible cells currently displayed by the collection view.

Declaration

var visibleCells: [UICollectionViewCell] { get }

Return Value

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

Discussion

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

See Also

Getting the State of the Collection View

var numberOfSections: Int

Returns the number of sections displayed by the collection view.

func numberOfItems(inSection: Int) -> Int

Returns the number of items in the specified section.