Skip to content

Commit

Permalink
Update code to RxSwift 3 for Swift 3
Browse files Browse the repository at this point in the history
Update the deprecated function itemsWithCellIdentifier for the UITableView
  • Loading branch information
Vkt0r committed Dec 9, 2016
1 parent 5706195 commit 2f87e49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Documentation/Units.md
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 2f87e49

Please sign in to comment.