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 `
See moreUICollectionViews APIs to animate cells.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
See moreUITableViews APIs to animate cells. You can configure your animations as needed for each change.Declaration
Swift
public final class TableViewChangesAnimator -
Wrapps an
ArrayDataProviderand handles changes to manipulate the content of the provider.See moreSeealso
DataModifyingDeclaration
Swift
public final class ArrayDataProviderModifier<Element> : DataModifying -
A default implementation for a observable which notifies about data provider changes.
See moreSee also
DataProviderObservableDeclaration
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 moreSee also
CollectionDataProviderDeclaration
Swift
public final class AnyCollectionDataProvider<ContentElement> : AnyDataProvider<ContentElement>, CollectionDataProvider -
Declaration
Swift
open class AnyDataProvider<Element> : DataProvider -
ArrayDataProviderprovides basic implementation to map arrays to aDataProvider.See moreSeealso
CollectionDataProviderDeclaration
Swift
public final class ArrayDataProvider<ContentElement> : CollectionDataProvider -
See moreFetchedResultsDataProvideruses aNSFetchedResultsControlleras a backing store to transform it into a data provider.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 moreDeclaration
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.
See moreNote
Transformation will only execute when an object is requested by callingobject(at:).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
See more//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 })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
See more//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)Declaration
Swift
public final class DynamicSectionTexts : SectionTexts -
CollectionViewDataSourceuses data provider and provides the data as aUICollectionViewDataSource.See moreSee also
UICollectionViewDataSourceDeclaration
Swift
public final class CollectionViewDataSource<Object> : NSObject, UICollectionViewDataSource -
TableViewDataSourceuses data provider and provides the data as aUITableViewDataSource.See moreSee also
UITableViewDataSourceDeclaration
Swift
public final class TableViewDataSource<Object> : NSObject, UITableViewDataSource
View on GitHub
Classes Reference