Contents

dequeueConfiguredReusableCell(using:for:item:)

Dequeues a configured reusable cell object.

Declaration

@MainActor @preconcurrency func dequeueConfiguredReusableCell<Cell, Item>(using registration: UICollectionView.CellRegistration<Cell, Item>, for indexPath: IndexPath, item: Item?) -> Cell where Cell : UICollectionViewCell

Parameters

  • registration:

    The cell registration for configuring the cell object. See Cellregistration.

  • indexPath:

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

  • item:

    The item that provides data for the cell.

Return Value

A configured reusable cell object.

See Also

Creating cells