ivanbruel / RxColor

RxSwift bindings for common UIColor setters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Ruby 55.4%Language:Swift 44.6%