Git Product home page Git Product logo

rxeureka's Introduction

RxEureka

CI Status

This library is a small Rx wrapper around Eureka

Table of contents:

  1. Observing row value changes
  2. Binding row value changes to variables
  3. Example app
  4. Requirements
  5. Installation
  6. Author
  7. License
  8. References

Observing row value changes

RxEureka can be used to create Observables from the value property of Eureka's rows :

let row = TextRow() { row in
     row.title = "Text Row"
     row.placeholder = "Enter text here"
   }

let disposeBag = DisposeBag()

row.rx.value
  .asObservable()
  .subscribe(onNext: { value in
    print("Row value did change to \(value)")
  })
  .addDisposableTo(disposeBag)

Binding row value changes to variables

With RxEureka you can also bind the Eureka's rows values to your variables :

let row = TextRow() { row in
     row.title = "Text Row"
     row.placeholder = "Enter text here"
   }

let myVariable: Variable<String?> = Variable(nil)

let disposeBag = DisposeBag()

row.rx.value
  .asObservable()
  .bindTo(myVariable)
  .addDisposableTo(disposeBag)

Example app

To run the example project, clone the repo, and run pod install from the Example directory first. The app usesRxSwift, RxCocoa to observe values from Eureka.

Requirements

  • Xcode 8.x
  • Swift 3.0

Installation

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

pod "RxEureka", :git => 'https://github.com/antoninbiret/RxEureka.git', :branch => 'master'

Tested with version 1.2.0

Author

Antonin Biret

License

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

References

rxeureka's People

Contributors

antoninbiret avatar danurna avatar mort3m avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.