RxColor 2.0

RxColor 2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Aug 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Ivan Bruel.



 
Depends on:
RxSwift~> 3.6
RxCocoa~> 3.6
 

RxColor

RxSwift bindings for common UIColor setters. UIView (backgroundColor), UILabel (textColor) and UIButton (titleColor and tintColor+titleColor).

Usage

Theming.sharedInstance.accentColor
      .bindTo(commentsButton.rx_color)
      .addDisposableTo(disposeBag)
Theming.sharedInstance.accentColor
      .bindTo(label.rx_textColor)
      .addDisposableTo(disposeBag)
Theming.sharedInstance.backgroundColor
      .bindTo(label.rx_backgroundColor)
      .addDisposableTo(disposeBag)

Installation

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

pod "RxColor"

License

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