TableViewDataSource
public final class TableViewDataSource<Object> : NSObject, UITableViewDataSource
TableViewDataSource uses data provider and provides the data as a UITableViewDataSource.
See also
UITableViewDataSource
-
The data provider which provides the data to the data source.
Declaration
Swift
public let dataProvider: AnyDataProvider<Object> -
Contains all meta data about the section like headers, footers and sectionIndexTitles.
Declaration
Swift
public var sectionMetaData: SectionMetaData? -
Data modificator can be used to modify the data providers content.
Declaration
Swift
public let dataModificator: DataModifying? -
Creates an instance with a data provider and cell configuration which will be displayed in the table view.
See also
DataProviderSee also
Declaration
Swift
public init<Cell: ReusableViewConfiguring, DataProviderType: DataProvider>(dataProvider: DataProviderType, cellConfiguration: Cell, dataModificator: DataModifying? = nil, sectionMetaData: SectionMetaData? = nil) where DataProviderType.Element == Object, Cell.Object == Object, Cell.View: UITableViewCellParameters
dataProviderthe data provider which provides data to the data source.
cellConfigurationthe cell configuration for the table view cell.
dataModificatordata modifier to modify the data. Defaults to
nil.sectionTitleProviderprovides section header titles and section index titles. Defaults to
nil.
View on GitHub
TableViewDataSource Class Reference