Contents

dataSource

The object that provides the data for the collection view.

Declaration

weak var dataSource: (any 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