CellDequeuing

protocol CellDequeuing : AnyObject

Protocol that provides a method to dequeue cells in [Table|Collection]Views.

  • Dequeues a cell of type CellType.

    Declaration

    Swift

    func dequeueReusableCell<CellType: UITableViewCell>(
        _ type: CellIdentifiable.Type,
        for indexPath: IndexPath
    ) -> CellType

    Parameters

    type

    The type of the cell to be dequeued.

    indexPath

    The indexPath in which to dequeue the cell.