DEV Community

Discussion on: Getting Started with Diffable Data Source

Collapse
 
ahmed_komsan12 profile image
Ahmed Komsan

This is because titleForHeaderInSection and titleForFooterInSection are part of UITableViewDataSource and UITableViewDiffableDataSource conforms to UITableViewDataSource ... so to use both methods or any others datasource methods, you can simply create your UITableViewDiffableDataSource subclass and override the data source methods you want in your subclass.