RxSwift, RxCocoa and UITableview

Viewed 4079

I have a problem with implementing a UITableView using RxSwift.

I tried to bind an observable of an array of models to the table items with the following code. models.bind(to: self.tableView.rx.items(cellIdentifier: "Cell", cellType: ModelTableViewCell.self.

But when I do it gives me the following error: Type 'inout UITableView' does not conform to protocol 'ReactiveCompatible' and I know the error can't be right because NSObject extends ReactiveCompatible so UITableView also does. Also, my project code isn't really different than the examples shown on RxSwiftCommunity

I created a small example project that has the error.

[Example code showing the error (picture)]

1 Answers
Related