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 moreUICollectionView
s 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 moreUITableView
s APIs to animate cells. You can configure your animations as needed for each change.Declaration
Swift
public final class TableViewChangesAnimator
-
Wrapps an
ArrayDataProvider
and handles changes to manipulate the content of the provider.Seealso
DataModifying
Declaration
Swift
public final class ArrayDataProviderModifier<Element> : DataModifying
-
A default implementation for a observable which notifies about data provider changes.
See also
DataProviderObservable
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 also
CollectionDataProvider
Declaration
Swift
public final class AnyCollectionDataProvider<ContentElement> : AnyDataProvider<ContentElement>, CollectionDataProvider
-
Declaration
Swift
open class AnyDataProvider<Element> : DataProvider
-
ArrayDataProvider
provides basic implementation to map arrays to aDataProvider
.Seealso
CollectionDataProvider
Declaration
Swift
public final class ArrayDataProvider<ContentElement> : CollectionDataProvider
-
See moreFetchedResultsDataProvider
uses aNSFetchedResultsController
as 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.
Note
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
-
CollectionViewDataSource
uses data provider and provides the data as aUICollectionViewDataSource
.See also
UICollectionViewDataSource
Declaration
Swift
public final class CollectionViewDataSource<Object> : NSObject, UICollectionViewDataSource
-
TableViewDataSource
uses data provider and provides the data as aUITableViewDataSource
.See also
UITableViewDataSource
Declaration
Swift
public final class TableViewDataSource<Object> : NSObject, UITableViewDataSource