I can select rows in tableView.rx but I'm wonder how to get array of final selection. I mean the result array of selecting some rows and then deselecting some rows.
Here's my code:
Observable.zip(tableView.rx.modelSelected(Country.self), tableView.rx.itemSelected).subscribe(onNext: { (selectedCountry, indexPath) in
print("2 selected Country is \(selectedCountry) and indexPath is \(indexPath.row)")
self.selectedCountries.append(selectedCountry)
I want also see selected rows as marked.
I appreciate for your helping. thanks