Get model from UICollectionView indexpath
问题 I'm using RxSwift to bind a model array to a collection view How do I get the model object from a given indexPath? I'm doing the binding like this: vm.bikeIssueCatagories() .drive(self.collectionView.rx.items(cellIdentifier: "BikeIssueCategoryCollectionViewCell", cellType: UICollectionViewCell.self)) { row, data, cell in }.disposed(by: disposeBag) The core of my issue is, that I need to get both the model object and the cell that a user selects. Using collectionView.rx.modelSelected(T.self)