Skip to content

ivanbruel/RxColor

Repository files navigation

RxColor

Version License Platform

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.

About

RxSwift bindings for common UIColor setters

Resources

License

Stars

Watchers

Forks

Packages

No packages published