<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "tvOS: 13.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewDiffableDataSource-2euir/CellProvider",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit29UITableViewDiffableDataSourceC12CellProvidera"
  },
  "title" : "UITableViewDiffableDataSource.CellProvider"
}
-->

# UITableViewDiffableDataSource.CellProvider

A closure that configures and returns a cell for a table view from its diffable data source.

```
typealias CellProvider = (UITableView, IndexPath, ItemIdentifierType) -> UITableViewCell?
```

## Parameters

`tableView`

The table view to configure this cell for.

`indexPath`

The index path that specifies the location of the cell in the table view.

`itemIdentifier`

The identifier of the item for this cell.

## Return Value

A non-`nil` configured cell object. The cell provider must return a valid cell object to the table view.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)