@@ -36,7 +36,7 @@ RxSwift helps alleviate some of the burden with a simple data binding mechanism:
36
36
``` swift
37
37
let data = Observable< [String ]> .just ([" first element" , " second element" , " third element" ])
38
38
39
- data.bindTo ( tableView.rx .items (cellIdentifier : " Cell" )) { index, model, cell in
39
+ data.bind ( to : tableView.rx .items (cellIdentifier : " Cell" )) { index, model, cell in
40
40
cell.textLabel ? .text = model
41
41
}
42
42
.disposed (by : disposeBag)
@@ -51,7 +51,7 @@ With RxDataSources, it is super easy to just write
51
51
``` swift
52
52
let dataSource = RxTableViewSectionedReloadDataSource< SectionModel< String , Int >> ()
53
53
Observable.just ([SectionModel (model : " title" , items : [1 , 2 , 3 ])])
54
- .bindTo ( tableView.rx .items (dataSource : dataSource))
54
+ .bind ( to : tableView.rx .items (dataSource : dataSource))
55
55
.disposed (by : disposeBag)
56
56
```
57
57
![ RxDataSources example app] ( https://raw.githubusercontent.com/kzaher/rxswiftcontent/rxdatasources/RxDataSources.gif )
@@ -115,7 +115,7 @@ let sections = [
115
115
]
116
116
117
117
Observable.just (sections)
118
- .bindTo ( tableView.rx .items (dataSource : dataSource))
118
+ .bind ( to : tableView.rx .items (dataSource : dataSource))
119
119
.disposed (by : disposeBag)
120
120
```
121
121
0 commit comments