marioradonic / RxDataSources

Table and Collection View Data Sources for RxSwift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table and Collection view data sources

Why

Writing table and collection view data sources is tedious. There is a large number of delegate methods that need to be implemented for the simplest case possible.

The problem is even bigger when table view or collection view needs to display animated updates.

This project makes it super easy to just write

Observable.just([MySection(header: "title", items: [1, 2, 3])])
    .bindTo(tableView.rx_itemsWithDataSource(dataSource))
    .addDisposableTo(disposeBag)

RxDataSources example app

Installation

We'll try to keep the API as stable as possible, but breaking API changes can occur.

CocoaPods

Podfile

pod 'RxDataSources', '~> 0.7'

Carthage

Cartfile

github "RxSwiftCommunity/RxDataSources"

About

Table and Collection View Data Sources for RxSwift

License:Other


Languages

Language:Swift 97.6%Language:Ruby 1.8%Language:Objective-C 0.5%