Latest 1.0.0
Homepage https://github.com/kevin0571/RxDratini
License MIT
Platforms ios 8.0, osx 10.10, tvos 9.0, watchos 2.0
Dependencies Dratini, RxSwift
Authors

RxDratini CI Status codecov CocoaPods Carthage Swift Pacakge Manager License

RxDratini provides RxSwift extensions for Dratini.

Requirements

  • Xcode 8.0+
  • Swift 3.0

Usage

CocoaPods

pod 'RxDratini'

Carthage

github "kevin0571/RxDratini"

Swift Package Manager

dependencies: [
    .Package(url: "https://github.com/kevin0571/RxDratini.git", majorVersion: 1)
]

Example

Subscribe for request:

// requestQueue, request and disposeBag are already initialized
request.asObservable(in: requestQueue).subscribe(onNext: { response in
    // received response
}, onError: { error in
    // received error
}).addDisposableTo(disposeBag)

Subscribe for response:

// requestQueue and disposeBag are already initialized
TestGetResponse.asObservable(in: requestQueue).subscribe(onNext: { response in
    // received response
}, onError: { error in
    // received error
}).addDisposableTo(disposeBag)

For usage of Dratini, please visit: https://github.com/kevin0571/Dratini

Latest podspec

{
    "name": "RxDratini",
    "version": "1.0.0",
    "license": "MIT",
    "summary": "Dratini with RxSwift",
    "homepage": "https://github.com/kevin0571/RxDratini",
    "authors": {
        "Kevin Lin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kevin0571/RxDratini.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.10",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "source_files": "Sources/*.swift",
    "dependencies": {
        "Dratini": [
            ">= 1.1.0"
        ],
        "RxSwift": [
            ">= 3.6.1"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This