AnyCollectionDataProvider

public final class AnyCollectionDataProvider<ContentElement> : AnyDataProvider<ContentElement>, CollectionDataProvider

Type eraser for CollectionDataProvider. This can be helpful to build conecpts like filtering, sorting ontop of collection data provider.

  • Undocumented

    Declaration

    Swift

    public typealias Element = ContentElement
  • The content which is provided by the data provider

    Declaration

    Swift

    public var content: AnyCollection<AnyCollection<Element>> { get }
  • Type ereases a give CollectionDataProvider.

    Declaration

    Swift

    public init<C>(dataProvider: C) where ContentElement == C.Element, C : CollectionDataProvider

    Parameters

    dataProvider

    the data provider to type erase.