Skip to content

Commit

Permalink
Merge resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanbruel committed Mar 7, 2016
2 parents bec2880 + fce0583 commit 959ec0a
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 34 deletions.
54 changes: 42 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# OS X
.DS_Store

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -12,22 +16,48 @@ build/
*.perspectivev3
!default.perspectivev3
xcuserdata

## Other
*.xccheckout
profile
*.moved-aside
DerivedData
*.xcuserstate
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa

# Bundler
.bundle
## Playgrounds
timeline.xctimeline
playground.xcworkspace

Carthage
# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Note: if you ignore the Pods directory, make sure to uncomment
# `pod install` in .travis.yml
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md

fastlane/report.xml
fastlane/screenshots
13 changes: 8 additions & 5 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Copyright (c) 2016 Ivan Bruel <[email protected]>
The MIT License (MIT)

Copyright (c) 2016 Ivan Bruel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -7,13 +9,14 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
39 changes: 22 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
# Cell-Rx
Cell+Rx
===========

[![CI Status](http://img.shields.io/travis/Ivan Bruel/Cell-Rx.svg?style=flat)](https://travis-ci.org/Ivan Bruel/Cell-Rx)
[![Version](https://img.shields.io/cocoapods/v/Cell-Rx.svg?style=flat)](http://cocoapods.org/pods/Cell-Rx)
[![License](https://img.shields.io/cocoapods/l/Cell-Rx.svg?style=flat)](http://cocoapods.org/pods/Cell-Rx)
[![Platform](https://img.shields.io/cocoapods/p/Cell-Rx.svg?style=flat)](http://cocoapods.org/pods/Cell-Rx)
**Cell+Rx** provides a similar API to [NSObject+Rx](https://github.com/RxSwiftCommunity/NSObject-Rx) but for cells who are reused along the way.

## Usage
I found myself creating `DisposeBag`s that were reset on the `prepareForReuse()` function which was pretty repetitive.

To run the example project, clone the repo, and run `pod install` from the Example directory first.
Instead of adding a new property to every cell, use this library to add it for you, to any subclass of `UITableViewCell` or `UICollectionViewCell`.

## Requirements
```swift
thing
.bindTo(otherThing)
.addDisposableTo(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.

## Installation
Installing
----------

Cell-Rx is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
####CocoaPods

This works with RxSwift version 2, which is still prerelease, so you've gotta be fancy with your podfile.

```ruby
pod "Cell-Rx"
pod 'Cell+Rx'
```

## Author

Ivan Bruel, [email protected]
And that'll be 👌

## License
License
-------

Cell-Rx is available under the MIT license. See the LICENSE file for more info.
MIT License.

0 comments on commit 959ec0a

Please sign in to comment.