I am trying to set up an UITableView
with sections using the new UITableViewDiffableDataSource
within an UITableViewController
.
Everything seems to work fine except setting the section header titles.
According to Apple's documentation, UITableViewDiffableDataSource
conforms to UITableViewDataSource
, so I was expecting this to be possible.
I have tried:
- overriding tableView(_ tableView:, titleForHeaderInSection section:) in the UITableViewController class
- subclassing UITableViewDiffableDataSource and implementing tableView(_ tableView:, titleForHeaderInSection section:) in the subclass
but both ways lead to no result (Xcode 11 and iOS13 beta 3).
Is there currently a way to set the section header titles using UITableViewDiffableDataSource
?