Latest 1.2.2
Homepage https://github.com/OhKanghoon/RxDataSources-Texture
License MIT
Platforms ios 9.0, requires ARC
Dependencies RxSwift, RxCocoa, Differentiator, Texture
Authors

CI Status
Version
License
Platform

Usage

  1. Turn your data into an Observable sequence
  2. Bind the data to the tableNode / collectionNode using :
    • rx.items(dataSource:protocol<RxASTableDataSourceType, ASTableDataSource>)
let dataSource = RxASTableSectionedReloadDataSource<SectionModel<String, Int>>(
    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.

Requirements

Installation

RxDataSources-Texture is available through CocoaPods. To install
it, simply add the following line to your Podfile:

# Swift 5
pod 'RxDataSources-Texture', '~> 1.2.2'

# Swift 4.2
pod 'RxDataSources-Texture', '~> 1.1.3'

Author

OhKanghoon, [email protected]

License

RxDataSources-Texture is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "RxDataSources-Texture",
    "version": "1.2.2",
    "summary": "RxDataSources With Texture",
    "description": "This is a collection of reactive data sources for ASTableNode and ASCollectionNode",
    "homepage": "https://github.com/OhKanghoon/RxDataSources-Texture",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "OhKanghoon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/OhKanghoon/RxDataSources-Texture.git",
        "tag": "1.2.2"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "swift_version": "5.0",
    "source_files": "RxDataSources-Texture/Classes/**/*",
    "dependencies": {
        "RxSwift": [
            "~> 5.0"
        ],
        "RxCocoa": [
            "~> 5.0"
        ],
        "Differentiator": [
            "~> 4.0"
        ],
        "Texture": [
            ">= 2.7"
        ]
    }
}

Pin It on Pinterest

Share This