I have the following code to configure my collectionView:
viewModel?
.observableExercises
.bindTo(
exercisesCollectionView
.rx
.items(cellIdentifier: "My identifier",
cellType: ExerciseCollectionViewCell.self)) {
index, exercise, cell in
cell.exercise = exercise
}
.addDisposableTo(disposeBag)
It all works fine at first, but later when my viewModel.observableExercises
gets updated I would like to have the exercisesCollectionView
reload its data. How should I do it?