Contents

isPrefetchingEnabled

A Boolean value that indicates whether cell and data prefetching are enabled.

Declaration

var isPrefetchingEnabled: Bool { get set }

Discussion

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