bigMOTOR/DataDrivenRxDatasources
DataDrivenRxDatasources - MVVM abstraction boilerplate code over RxDataSources.
Getting Started
private typealias SectionViewModel = AnimatableTableSectionModel<String>
let cellItems = [
SampleCellViewModel(name: "Name 1"),
SampleCellViewModel(name: "Name 2")
]
let sections: Driver<[AnimatableTableSectionModel<String>]> = .just([SectionViewModel(model: "Some Section", items: cellItems)])
tableView.rx
.bind(sections: sections)
.disposed(by: bag)Please take a look at our ‘Example’ project to get more use cases.
Contributing
- Something wrong or you need anything else? Please open an issue or make a Pull Request.
- Pull requests are welcome.
Requirements
DataDrivenRxDatasources requires iOS11, RxDataSources 5.x and RxSwift 6.x. For the last iOS10 support, please use DataDrivenRxDatasources 2.1.0. For the last RxSwift 5.x support, please use DataDrivenRxDatasources 1.2.0.
License
DataDrivenRxDatasources is available under the MIT license. See the LICENSE file for more info.
Package Metadata
Repository: bigMOTOR/DataDrivenRxDatasources
Stars: 17
Forks: 3
Open issues: 4
Default branch: master
Primary language: swift
License: MIT
README: README.md