Perhaps you just need to update the version of the RxSwift library. It looks about the same as UI {Table | Collection} View rx bindings. Suppose you have a data source, for example:
let items: Observable<[String]> = Observable.of(["Row1", "Row2", "Row3"])
To populate your UIPickerView:
items.bind(to: yourPickerView.rx.itemTitles) { (row, element) in return element } .disposed(by: disposeBag)
To process selected items:
yourPickerView.rx.itemSelected .subscribe { (event) in switch event { case .next(let selected): print("You selected #\(selected.row)") default: break } } .disposed(by: disposeBag)
source share