CocoaPods trunk is moving to be read-only. Read more on the blog, there are 5 months to go.

RxCollectionExtensions 1.0

RxCollectionExtensions 1.0

Maintained by leesam.



 
Depends on:
RxSwift>= 0
RxCocoa>= 0
 

  • By
  • 2sem

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, [email protected]

License

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