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
DataProvider
See 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: UITableViewCell
Parameters
dataProvider
the data provider which provides data to the data source.
cellConfiguration
the cell configuration for the table view cell.
dataModificator
data modifier to modify the data. Defaults to
nil
.sectionTitleProvider
provides section header titles and section index titles. Defaults to
nil
.