Config
public struct Config
Config to initialize DiffableTableViewDataSource
The required info is UITableView
and [ReusableCell
.Type]
[ReusableView
.Type] and DiffableDataSourceFilterProvider
are optional
Note
Though you don’t have to passDiffableDataSourceFilterProvider
the source won’t know
about the number of sections, so it will create sections by itsefl bases on the first update
-
Constructor
Note
if you don’t use headers or footers then no need to use
[ReusableView.Type]
Though you don’t have to pass
DiffableDataSourceFilterProvider
the source won’t know about the number of sections, so it will create sections by itsefl bases on the first updateDeclaration
Swift
public init(tableView: UITableView, cellTypes: [ReusableCell.Type], headerFooters: [ReusableView.Type], provider: DiffableDataSourceFilterProvider = .init())
Parameters
tableView
UITableView
cellTypes
[ReusableCell.Type]
headerFooters
[ReusableView.Type]
provider