UICollectionView.CellRegistration.Handler
A closure that handles the cell registration and configuration.
Declaration
typealias Handler = (Cell, IndexPath, Item) -> VoidDiscussion
The closure takes the following parameters:
cellThe UICollectionViewCell or subclass instance to configure.
indexPathThe IndexPath of the cell to configure.
itemThe data item you provide in dequeueConfiguredReusableCell(using:for:item:).