Contents

prefetchDataSource

The object that acts as the prefetching data source for the collection view, receiving notifications of upcoming cell data requirements.

Declaration

weak var prefetchDataSource: (any UICollectionViewDataSourcePrefetching)? { get set }

Discussion

Assign an object that conforms to the UICollectionViewDataSourcePrefetching protocol to facilitate prefetching of data for cells to be displayed in the near future. To disable data prefetching behavior, set this property to nil.

See Also

Prefetching collection view cells and data