@@ -26,15 +26,15 @@ Writing table and collection view data sources is tedious. There is a large numb
26
26
RxSwift helps alleviate some of the burden with a simple data binding mechanism:
27
27
1 ) Turn your data into an Observable sequence
28
28
2 ) Bind the data to the tableView/collectionView using one of:
29
- - ` rx_itemsWithDataSource( :protocol<RxTableViewDataSourceType, UITableViewDataSource>)`
30
- - ` rx_itemsWithCellIdentifier( :String)`
31
- - ` rx_itemsWithCellIdentifier( :String:Cell.Type)`
32
- - ` rx_itemsWithCellFactory(:ObservableType )`
29
+ - ` rx_items(dataSource :protocol<RxTableViewDataSourceType, UITableViewDataSource>)`
30
+ - ` rx_items(cellIdentifier :String)`
31
+ - ` rx_items(cellIdentifier :String:Cell.Type:_: )`
32
+ - ` rx_items(_:_: )`
33
33
34
34
``` swift
35
35
let dataSource = Observable< [String ]> .just ([" first element" , " second element" , " third element" ])
36
36
37
- dataSource.bindTo (tableView.rx_itemsWithCellIdentifier ( " Cell" )) { index, model, cell in
37
+ dataSource.bindTo (tableView.rx . items ( cellIdentifier : " Cell" )) { index, model, cell in
38
38
cell.textLabel ? .text = model
39
39
}
40
40
.addDisposableTo (disposeBag)
@@ -48,7 +48,7 @@ With RxDataSources, it is super easy to just write
48
48
49
49
``` swift
50
50
Observable.just ([MySection (header : " title" , items : [1 , 2 , 3 ])])
51
- .bindTo (tableView.rx_itemsWithDataSource ( dataSource))
51
+ .bindTo (tableView.rx . items ( dataSource : dataSource))
52
52
.addDisposableTo (disposeBag)
53
53
```
54
54
![ RxDataSources example app] ( https://raw.githubusercontent.com/kzaher/rxswiftcontent/rxdatasources/RxDataSources.gif )
@@ -112,7 +112,7 @@ let sections = [
112
112
]
113
113
114
114
Observable.just (sections)
115
- .bindTo (tableView.rx_itemsWithDataSource ( dataSource))
115
+ .bindTo (tableView.rx . items ( dataSource : dataSource))
116
116
.addDisposableTo (disposeBag)
117
117
```
118
118
@@ -123,6 +123,11 @@ To implement animations with RxDataSources, the same steps are required as with
123
123
- dataSource needs to be an instance of ` RxTableViewSectionedAnimatedDataSource ` or ` RxTableViewSectionedAnimatedDataSource `
124
124
125
125
126
+ ## Requirements
127
+
128
+ Xcode 8.0 beta 6 (8S201h)
129
+
130
+ For Swift 2.3 version please use versions ` 0.1 ... 0.9 `
126
131
127
132
## Installation
128
133
@@ -132,7 +137,7 @@ To implement animations with RxDataSources, the same steps are required as with
132
137
133
138
Podfile
134
139
```
135
- pod 'RxDataSources', '~> 0.7 '
140
+ pod 'RxDataSources', '~> 1.0.0.alpha.1 '
136
141
```
137
142
138
143
### Carthage
0 commit comments