Instance Property

dataSource

The object that provides the data for the collection view.

Declaration

weak var dataSource: UICollectionViewDataSource? { get set }

Discussion

The data source must adopt the UICollectionViewDataSource protocol. The collection view maintains a weak reference to the data source object.

See Also

Providing the Collection View Data

protocol UICollectionViewDataSource

The methods adopted by the object you use to manage data and provide cells for a collection view.

protocol UICollectionViewDataSourcePrefetching

A protocol that provides advance warning of the data requirements for a collection view, allowing the triggering of asynchronous data load operations.