Contents

UICollectionView.CellRegistration.Handler

A closure that handles the cell registration and configuration.

Declaration

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

Discussion

The closure takes the following parameters:

cell

The UICollectionViewCell or subclass instance to configure.

indexPath

The IndexPath of the cell to configure.

item

The data item you provide in dequeueConfiguredReusableCell(using:for:item:).

See Also

Creating a cell registration