Latest 1.4
Homepage https://github.com/bmoliveira/Cell-Rx
License MIT
Platforms ios 8.0
Dependencies RxSwift
Frameworks UIKit
Authors

Version
Swift 5
RxSwift 4.x
License
Platform

Cell+Rx provides a similar API to NSObject+Rx but for cells who are reused along the way.

I found myself creating DisposeBags that were reset on the prepareForReuse() function which was pretty repetitive.

Instead of adding a new property to every cell, use this library to add it for you, to any subclass of UITableViewCell or UICollectionViewCell.

thing
  .bindTo(otherThing)
  .disposed(by: rx.reusableDisposeBag)

It’ll work just like a property: when the instance is deinit’d, the DisposeBag gets disposed. It will also reset whenever the cell is reused by detecting prepareForReuse() calls. It’s also a read/write property, so you can use your own, too.

Installing

CocoaPods

This works with RxSwift version 4 and Swift 4.0

pod 'Cell+Rx'

And that’ll be 👌

License

MIT License.

Latest podspec

{
    "name": "Cell+Rx",
    "version": "1.4",
    "summary": "Handy RxSwift extensions on UITableViewCell and UICollectionViewCell.",
    "description": "Right now, we just have a `rx.reusableDisposeBag` property, but we're open to PRs!",
    "homepage": "https://github.com/bmoliveira/Cell-Rx",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ivan Bruel": "[email protected]"
    },
    "social_media_url": "http://twitter.com/ivanbruel",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/bmoliveira/Cell-Rx.git",
        "tag": "1.4"
    },
    "source_files": "Pod/Classes/*.swift",
    "frameworks": "UIKit",
    "dependencies": {
        "RxSwift": [
            ">= 4"
        ]
    }
}

Pin It on Pinterest

Share This