Skip to content

Commit 8ab8bd2

Browse files
committed
Updates documentation.
1 parent 977c190 commit 8ab8bd2

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ Writing table and collection view data sources is tedious. There is a large numb
2626
RxSwift helps alleviate some of the burden with a simple data binding mechanism:
2727
1) Turn your data into an Observable sequence
2828
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(_:_:)`
3333

3434
```swift
3535
let dataSource = Observable<[String]>.just(["first element", "second element", "third element"])
3636

37-
dataSource.bindTo(tableView.rx_itemsWithCellIdentifier("Cell")) { index, model, cell in
37+
dataSource.bindTo(tableView.rx.items(cellIdentifier: "Cell")) { index, model, cell in
3838
cell.textLabel?.text = model
3939
}
4040
.addDisposableTo(disposeBag)
@@ -48,7 +48,7 @@ With RxDataSources, it is super easy to just write
4848

4949
```swift
5050
Observable.just([MySection(header: "title", items: [1, 2, 3])])
51-
.bindTo(tableView.rx_itemsWithDataSource(dataSource))
51+
.bindTo(tableView.rx.items(dataSource: dataSource))
5252
.addDisposableTo(disposeBag)
5353
```
5454
![RxDataSources example app](https://raw.githubusercontent.com/kzaher/rxswiftcontent/rxdatasources/RxDataSources.gif)
@@ -112,7 +112,7 @@ let sections = [
112112
]
113113

114114
Observable.just(sections)
115-
.bindTo(tableView.rx_itemsWithDataSource(dataSource))
115+
.bindTo(tableView.rx.items(dataSource: dataSource))
116116
.addDisposableTo(disposeBag)
117117
```
118118

@@ -123,6 +123,11 @@ To implement animations with RxDataSources, the same steps are required as with
123123
- dataSource needs to be an instance of `RxTableViewSectionedAnimatedDataSource` or `RxTableViewSectionedAnimatedDataSource`
124124

125125

126+
## Requirements
127+
128+
Xcode 8.0 beta 6 (8S201h)
129+
130+
For Swift 2.3 version please use versions `0.1 ... 0.9`
126131

127132
## Installation
128133

@@ -132,7 +137,7 @@ To implement animations with RxDataSources, the same steps are required as with
132137

133138
Podfile
134139
```
135-
pod 'RxDataSources', '~> 0.7'
140+
pod 'RxDataSources', '~> 1.0.0.alpha.1'
136141
```
137142

138143
### Carthage

0 commit comments

Comments
 (0)