---
title: dataSource
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableview/datasource
---

# dataSource

The object that acts as the data source of the table view.

## Declaration

```swift
weak var dataSource: (any UITableViewDataSource)? { get set }
```

## Discussion

Discussion The data source must adopt the UITableViewDataSource protocol. The data source isn’t retained.

## See Also

### Related Documentation

- [delegate](uikit/uitableview/delegate.md)

### Providing the data and cells

- [prefetchDataSource](uikit/uitableview/prefetchdatasource.md)
- [isPrefetchingEnabled](uikit/uitableview/isprefetchingenabled.md)
- [UITableViewDataSource](uikit/uitableviewdatasource.md)
- [UITableViewDataSourcePrefetching](uikit/uitableviewdatasourceprefetching.md)
