Instance Property


Denotes whether cell and data prefetching are enabled.


var isPrefetchingEnabled: Bool { get set }


When true, the collection view requests cells in advance of when they will be displayed, spreading the rendering over multiple layout passes. When false, the cells are requested as they are needed for display, often with multiple cells being requested in the same render loop. Setting this property to false also disables data prefetching. The default value of this property is true.

See Also

Prefetching Collection View Cells and Data

var prefetchDataSource: UICollectionViewDataSourcePrefetching?

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