Skip to content

Repository files navigation

RxCollectionExtensions

CI Status Version License Platform

Installation

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

Bind to TableView

self.viewModel.items
//            .asObservable()
    .bind(toTableView: self.tableView, cellIdentifier: Cells.default, cellType: UITableViewCell.self, disposeBag: self.disposeBag) { (index, row, cell) in
        cell.textLabel?.text = row.name;
    }

Bind to CollectionView

self.viewModel.items
//            .asObservable()
    .bind(toCollectionView: self.collectionView, cellIdentifier: Cells.default, cellType: CollectionViewCell.self, disposeBag: self.disposeBag) { (index, row, cell) in
        cell.label?.text = row.name;
    }

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

RxSwfit, RxCocoa

pod 'RxCollectionExtensions'

Author

2sem, toyboy2@hanmail.net

License

RxCollectionExtensions is available under the MIT license. See the LICENSE file for more info.

About

Extensions of Collection Observable for UITableView, UICollectionView

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages