<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "tvOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICollectionView/CellRegistration/Handler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So16UICollectionViewC5UIKitE16CellRegistrationV7Handlera"
  },
  "title" : "UICollectionView.CellRegistration.Handler"
}
-->

# UICollectionView.CellRegistration.Handler

A closure that handles the cell registration and configuration.

```
typealias Handler = (Cell, IndexPath, Item) -> Void
```

## Discussion

The closure takes the following parameters:

- `cell`: The [`UICollectionViewCell`](/documentation/UIKit/UICollectionViewCell) or subclass instance to configure.
- `indexPath`: The <doc://com.apple.documentation/documentation/Foundation/IndexPath> of the cell to configure.
- `item`: The data item you provide in [`dequeueConfiguredReusableCell(using:for:item:)`](/documentation/UIKit/UICollectionView/dequeueConfiguredReusableCell(using:for:item:)).

---

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)