CollectionViewFactory

open class CollectionViewFactory

CollectionViewFactory defines a factory for generating collection components

Version

1.8.0

Date

07/06/22

Author

Adamasp
  • Get a reusable cell instance

    Declaration

    Swift

    public static func cell(for row: CollectionReusableRowType,
                            in collectionView: UICollectionView,
                            at indexPath: IndexPath) -> UICollectionViewCell

    Parameters

    row

    The row of the cell

    collectionView

    The collection view that holds the cell

    indexPath

    The index path of the cell

    Return Value

    A cell instance