Latest 0.2.0
Homepage https://github.com/antoninbiret/RxEureka
License MIT
Platforms ios 8.0
Dependencies Eureka, RxCocoa
Authors

Build Status
Version
License
Platform

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)")
  })
  .disposed(by: 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()
  .bind(to: myVariable)
  .disposed(by: 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 9.x
  • Swift 4.0

Installation

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

pod "RxEureka", "~> 0.2"

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

Latest podspec

{
    "name": "RxEureka",
    "version": "0.2.0",
    "summary": "An Rx wrapper of Eureka's rows.",
    "description": "This is an Rx extension that provides an easy wayn  to bind Eureka's rows values",
    "homepage": "https://github.com/antoninbiret/RxEureka",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "antoninbiret": "[email protected]"
    },
    "source": {
        "git": "https://github.com/antoninbiret/RxEureka.git",
        "tag": "0.2.0"
    },
    "social_media_url": "https://twitter.com/Antonin_brt",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "RxEureka/Classes/**/*",
    "dependencies": {
        "Eureka": [
            "~> 4.0"
        ],
        "RxCocoa": [
            "~> 4.0"
        ]
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This