Latest 2.1.1
Homepage https://github.com/ivanbruel/RxResult
License MIT
Platforms ios 8.0
Dependencies RxSwift, Result
Authors

Version
License
Platform

RxResult provides helpful methods to manage Observable RxSwift streams with Result values. Allowing you to subscribe only to success or failure cases, but also calling doOn methods on top of it.

Usage

let result: Observable<Result<String, JSONError>> = ...
result.doOnSuccess { value in
  print("success with (value)")
}.doOnFailure { error in
  print("failure with (error)")
}.subscribeSuccess { value in  // or subscribeFailure
  print("subscribed with success (value)")
}.addDisposableTo(disposeBag)

Requirements

Installation

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

pod "RxResult"

License

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

Latest podspec

{
    "name": "RxResult",
    "version": "2.1.1",
    "summary": "Result bindings for RxSwift",
    "description": "Result bindings for RxSwift. Adds doOnSuccess, doOnFailure, subscribeSuccessnand subscribeFailure methods.",
    "homepage": "https://github.com/ivanbruel/RxResult",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ivan Bruel": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ivanbruel/RxResult.git",
        "tag": "2.1.1"
    },
    "social_media_url": "https://twitter.com/ivanbruel",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "RxResult/Classes/**/*",
    "dependencies": {
        "RxSwift": [
            "~> 4.0"
        ],
        "Result": []
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This