RxDataSources
RxDataSources copied to clipboard
tableview reload section or rows
Hi. How I can to do "tableview reload section or rows"? I changed a property for item value in my array, but I don't understand how I can to reload row.
You shouldn't need to reload anything, that's how the binding works. Can you either paste the code here or provide some full example on your setup?
I had a similar problem!!!
code:
let days: Driver<[SectionModel<String, DateModel>]>
....
let ds = RxCollectionViewSectionedReloadDataSource<SectionModel<String, DateModel>> (configureCell: { (ds, collectionView, indexPath, model) -> DayCell in
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: kCellIdentifire, for: indexPath) as! DayCell
cell.model = model
return cell
})
vmOutput.days
.asDriver()
.drive(collectionView.rx.items(dataSource: ds))
.disposed(by: rx.disposeBag)