init(tableView:cellProvider:)
Creates a diffable data source with the specified cell provider, and connects it to the specified table view.
Declaration
init(tableView: UITableView, cellProvider: @escaping UITableViewDiffableDataSourceReferenceCellProvider)Parameters
- tableView:
The initialized table view object to connect to the diffable data source.
- cellProvider:
A closure that creates and returns each of the cells for the table view from the data the diffable data source provides.