LazyTransformationDataProvider
public final class LazyTransformationDataProvider<TargetType> : 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:).
-
Undocumented
Declaration
Swift
public init<D>(dataProvider: D, transform: @escaping (D.Element) -> TargetType) where D : DataProvider
-
An observable where one can subscribe to changes of data provider.
Declaration
Swift
public var observable: DataProviderObservable -
Returns an object for a given index path.
Declaration
Swift
public func object(at indexPath: IndexPath) -> TargetTypeParameters
indexPaththe index path to get the object for.
Return Value
the object at the given index path.
-
Returns the number of items in a given section.
Declaration
Swift
public func numberOfItems(inSection section: Int) -> IntParameters
sectionthe section.
Return Value
number of items in the given section.
-
Return the number of sections.
Declaration
Swift
public func numberOfSections() -> IntReturn Value
the number of sections.
View on GitHub
LazyTransformationDataProvider Class Reference