CollectionViewWrapper

public class CollectionViewWrapper
    <
    DataType: Equatable,
    CellClass: UICollectionViewCell
    where
    CellClass: ConfigurableCell,
    DataType == CellClass.DataType
>: FlowDataDestination, WrapperProtocol

CollectionViewWrapper

Wraps collection view and set’s collection view data source.

  • FlowDataDestination protocol implementation method.

    Seealso

    FlowDataDestination

    This method processes data from data flow.

    Declaration

    Swift

    public func processData(data: [DataType])

    Parameters

    data

    Data array to process.

    • parameters:
      • collectionView: Collection view to wrap around.
      • theme: Visual theme of collection view.

    Declaration

    Swift

    public init(collectionView: UICollectionView, theme: Theme)

    Parameters

    collectionView

    Collection view to wrap around.

    theme

    Visual theme of collection view.