I wasn't really able to find this in docs or somewhere, but is there a way to provide custom header and footer loaded from nib, using RxDatasources?
For example, I am dequeuing a cell like this:
let dataSource = RxTableViewSectionedAnimatedDataSource<CommentsSectionModel>(
configureCell: { dataSource, tableView, indexPath, item in
if let cell = tableView.dequeueReusableCell(withIdentifier:
item.cellIdentifier, for: indexPath) as? BaseTableViewCell{
cell.setup(data: item.model)
return cell
}
return UITableViewCell()
})
I don't see that there is something along with configureCell
(except titleForHeaderInSection
) to let me dequeue/configure reusable header/footer (something what standard viewForHeaderInSection
and viewForFooterInSection
delegate methods are providing).