---
title: prefetchDataSource
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionview/prefetchdatasource
---

# prefetchDataSource

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

## Declaration

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

## Discussion

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

- [isPrefetchingEnabled](uikit/uicollectionview/isprefetchingenabled.md)
- [UICollectionViewDataSourcePrefetching](uikit/uicollectionviewdatasourceprefetching.md)
