66[ ![ CocoaPods compatible] ( https://img.shields.io/cocoapods/v/RxASDataSources.svg )] ( https://cocoapods.org/pods/RxASDataSources )
77[ ![ Travis] ( https://img.shields.io/travis/dangthaison91/RxASDataSources/master.svg )] ( https://travis-ci.org/dangthaison91/RxASDataSources/branches )
88
9- [ RxDataSources] ( https://github.com/RxSwiftCommunity/RxDataSources ) for AsyncDisplayKit/Texture: ASTableNode & ASCollectionNode.
9+ [ RxDataSources] ( https://github.com/RxSwiftCommunity/RxDataSources ) for [ AsyncDisplayKit/Texture] ( http://texturegroup.org/docs/getting-started.html ) : ASTableNode & ASCollectionNode.
1010
11+ - [ Features] ( #features )
1112- [ Requirements] ( #requirements )
1213- [ Installation] ( #installation )
1314- [ Usage] ( #usage )
1415- [ License] ( #license )
1516
17+ ## Features
18+ - [x] ** O(N)** Diff algorithm from [ RxDataSources/Differentiator] ( https://github.com/RxSwiftCommunity/RxDataSources/tree/master/Sources/Differentiator )
19+ - [x] Shared RxDataSources's APIs so you must learn only once.
20+ - [x] Supports ` ASTableNode ` and ` ASCollectionNode `
21+ - [ ] Support ` nodeBlockForRowAtIndexPath `
22+ - [ ] More complex Example app
23+
24+
1625## Requirements
1726
1827- iOS 8.0+
1928- Xcode 9.0+
29+ - RxSwift 4.0 & Texture 2.5
2030
2131## Installation
2232
@@ -43,6 +53,25 @@ github "dangthaison91/RxASDataSources"
4353```
4454
4555## Usage
56+ Working with RxASDataSources will be very simple if you are familiar with RxDataSources:
57+ ``` ruby
58+ typealias Section = SectionModel < String , Int >
59+
60+ let configureCell: ASTableSectionedDataSource < Section > .ConfigureCell = { (dataSource, tableNode, index, model) in
61+ let cell = ASTextCellNode ()
62+ cell.text = model.info
63+ return cell
64+ }
65+
66+ let animation = RowAnimation (insertAnimation: .automatic, reloadAnimation: .fade, deleteAnimation: .automatic)
67+ let dataSource = RxASTableSectionedReloadDataSource < Section > (animationConfiguration: animation, configureCell: configureCell)
68+
69+ items
70+ .bind(to: tableNode.rx.items(dataSource: dataSource))
71+ .disposed(by: disposeBag)
72+ ```
73+
74+ For more advance usages, please follow [ RxDataSources] ( https://github.com/RxSwiftCommunity/RxDataSources ) and [ Example] ( https://github.com/RxSwiftCommunity/RxDataSources/tree/master/Example ) then simply replace your ** Views -> Nodes.**
4675
4776## License
4877
0 commit comments