Classes

The following classes are available globally.

  • A listener that observers changes of a data provider. It create animations to make changes visible in the view by using `UICollectionViews APIs to animate cells.

    See more

    Declaration

    Swift

    public final class CollectionViewChangesAnimator
  • A listener that observes changes of a data provider. It creates animations to make changes visible in the view by using UITableViews APIs to animate cells. You can configure your animations as needed for each change.

    See more

    Declaration

    Swift

    public final class TableViewChangesAnimator
  • Wrapps an ArrayDataProvider and handles changes to manipulate the content of the provider.

    Seealso

    DataModifying
    See more

    Declaration

    Swift

    public final class ArrayDataProviderModifier<Element> : DataModifying
  • A default implementation for a observable which notifies about data provider changes.

    See more

    Declaration

    Swift

    public final class DefaultDataProviderObservable : DataProviderObservable
  • Type eraser for CollectionDataProvider. This can be helpful to build conecpts like filtering, sorting ontop of collection data provider.

    See more

    Declaration

    Swift

    public final class AnyCollectionDataProvider<ContentElement> : AnyDataProvider<ContentElement>, CollectionDataProvider
  • Type erases a DataProvider.

    See also

    DataProvider
    See more

    Declaration

    Swift

    open class AnyDataProvider<Element> : DataProvider
  • ArrayDataProvider provides basic implementation to map arrays to a DataProvider.

    See more

    Declaration

    Swift

    public final class ArrayDataProvider<ContentElement> : CollectionDataProvider
  • FetchedResultsDataProvider uses a NSFetchedResultsController as a backing store to transform it into a data provider.

    See more

    Declaration

    Swift

    public final class FetchedResultsDataProvider<Object> : NSObject, NSFetchedResultsControllerDelegate, DataProvider where Object : NSFetchRequestResult
  • Takes multiple data provider and aggregates them into a single on.

    See more

    Declaration

    Swift

    public final class JoinedDataProvider<Element> : DataProvider
  • Takes a data provider and transforms it with a given closure into a new data provider with a different type.

    Note

    Transformation will only execute when an object is requested by calling object(at:).
    See more

    Declaration

    Swift

    public final class LazyTransformationDataProvider<TargetType> : DataProvider
  • Generates section index titles by fetching the first element of a section and transforms it with a given closure into a section index titles.

    Example

    //A data provider with multiple sections. Each section contains trains from a single type
    let dataProvider: ArrayDataProvider<Train> = //
    
    //Use type name as a section header and shortname as a section index title.
    let sectionTitleProvider = DynamicSectionIndexTitles(dataProvider: dataProvider,
                                   generateSectionIndexTitle: { train, _ in return train.type.shortName })
    
    See more

    Declaration

    Swift

    public final class DynamicSectionIndexTitles : SectionIndexTitles
  • Generates section texts by fetching the first element of a section and transforms it with a given closure into section texts.

    Example

    //A data provider with multiple sections. Each section contains trains from a single type
    let dataProvider: ArrayDataProvider<Train> = //
    
    //Use type name as a section header and shortname as a section index title.
    let sectionTitleProvider = DynamicSectionTexts(dataProvider: dataProvider,
    sectionTextWithElement: { train, _ in return train.type.name },
    using: .firstElementInSection)
    
    See more

    Declaration

    Swift

    public final class DynamicSectionTexts : SectionTexts
  • CollectionViewDataSource uses data provider and provides the data as a UICollectionViewDataSource.

    See also

    UICollectionViewDataSource
    See more

    Declaration

    Swift

    public final class CollectionViewDataSource<Object> : NSObject, UICollectionViewDataSource
  • TableViewDataSource uses data provider and provides the data as a UITableViewDataSource.

    See also

    UITableViewDataSource
    See more

    Declaration

    Swift

    public final class TableViewDataSource<Object> : NSObject, UITableViewDataSource