https://github.com/ohkanghoon/rxdatasources-texture
ASTable and ASCollection Data Sources for RxSwift (Texture)
https://github.com/ohkanghoon/rxdatasources-texture
asyncdisplaykit datasource diff rxswift rxswift-extensions sections texture
Last synced: 2 months ago
JSON representation
ASTable and ASCollection Data Sources for RxSwift (Texture)
- Host: GitHub
- URL: https://github.com/ohkanghoon/rxdatasources-texture
- Owner: OhKanghoon
- License: mit
- Created: 2019-02-21T12:29:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-04T16:50:34.000Z (over 4 years ago)
- Last Synced: 2025-04-11T01:02:56.249Z (2 months ago)
- Topics: asyncdisplaykit, datasource, diff, rxswift, rxswift-extensions, sections, texture
- Language: Swift
- Homepage:
- Size: 221 KB
- Stars: 36
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/OhKanghoon/RxDataSources-Texture/actions)
[](https://cocoapods.org/pods/RxDataSources-Texture)
[](https://cocoapods.org/pods/RxDataSources-Texture)
[](https://cocoapods.org/pods/RxDataSources-Texture)## Usage
1. Turn your data into an Observable sequence
2. Bind the data to the tableNode / collectionNode using :
- rx.items(dataSource:protocol)```swift
let dataSource = RxASTableSectionedReloadDataSource>(
configureCellBlock: { (_, _, _, num) in
return {
let cell = ASTextCellNode()
cell.text = "\(num)"
return cell
}
})Observable.just([SectionModel(model: "title", items: [1, 2, 3])])
.bind(to: tableNode.rx.items(dataSource: dataSource))
.disposed(by: disposeBag)
```## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
- [RxDataSources Example](https://github.com/OhKanghoon/RxDataSources-Texture/tree/master/Example)## Requirements
- Swift 5.2
- [RxSwift](https://github.com/ReactiveX/RxSwift) (~> 6.0)
- [RxCocoa](https://github.com/ReactiveX/RxSwift/tree/master/RxCocoa) (~> 6.0)
- Differentiator (~> 5.0)
- [Texture](https://github.com/TextureGroup/Texture) (~> 3.0)## Installation
RxDataSources-Texture is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'RxDataSources-Texture'
```## Development
```console
$ make project
$ open RxDataSources-Texture.xcworkspace
```## Author
OhKanghoon, [email protected]
## License
RxDataSources-Texture is available under the MIT license. See the LICENSE file for more info.