Swiftpack.co - Package - kevin0571/RxDratini

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

Github

link
Stars: 2
Help us keep the lights on

Used By

Total: 1

Releases

1.0.0 - Aug 13, 2017