RxDataSources
RxDataSources copied to clipboard
How to use refresh one tableView or collectionView cell
roomVM.items
.bind(to: collectionView.rx.items) {[weak self] (collectionView, row, element) in
let indexPath = IndexPath(row: row, section: 0)
let cell = collectionView.dequeueReusableCell(
withReuseIdentifier: RoomCell.identifier,
for: indexPath) as! RoomCell
cell.config(element)
return cell
}
.disposed(by: bag)