From 2f87e49c2a3a6b16ffe499b5afd8028921e6ee79 Mon Sep 17 00:00:00 2001 From: Victor Sigler Date: Thu, 8 Dec 2016 22:23:47 -0500 Subject: [PATCH] Update code to RxSwift 3 for Swift 3 Update the deprecated function itemsWithCellIdentifier for the UITableView --- Documentation/Units.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/Units.md b/Documentation/Units.md index 5f347da56..ffb5ce3cf 100644 --- a/Documentation/Units.md +++ b/Documentation/Units.md @@ -176,7 +176,7 @@ results .addDisposableTo(disposeBag) results - .bindTo(resultsTableView.rx.itemsWithCellIdentifier("Cell")) { (_, result, cell) in + .bindTo(resultsTableView.rx.items(cellIdentifier: "Cell")) { (_, result, cell) in cell.textLabel?.text = "\(result)" } .addDisposableTo(disposeBag) @@ -211,7 +211,7 @@ results .addDisposableTo(disposeBag) results - .bindTo(resultTableView.rx.itemsWithCellIdentifier("Cell")) { (_, result, cell) in + .bindTo(resultsTableView.rx.items(cellIdentifier: "Cell")) { (_, result, cell) in cell.textLabel?.text = "\(result)" } .addDisposableTo(disposeBag) @@ -235,7 +235,7 @@ results .addDisposableTo(disposeBag) // that means that the compiler has proven that all properties // are satisfied. results - .drive(resultTableView.rx.itemsWithCellIdentifier("Cell")) { (_, result, cell) in + .drive(resultsTableView.rx.items(cellIdentifier: "Cell")) { (_, result, cell) in cell.textLabel?.text = "\(result)" } .addDisposableTo(disposeBag)