A collection of wrapper classes that allow you to use RxSwift Observers in place of Parse's callbacks.
It is a fork from bluelinelabs/Parse-RxSwift !
To run the example project, clone the repo, and run pod install
from the Example directory first.
Parse_RxSwift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Parse_RxSwift'
Just call .rx
after initialising a Parse object and you'll get the RxSwift-ified version whose methods will return Observable types, eg
// a stream of the results
let o: Observable<PFObject> = PFQuery(className: "GameScore")
.whereKey("playerName", equalTo: "Dan Stemkoski")
.rx
.findObjects()
// complete if successful, otherwise and error
let c: Completable = somePFObject.rx.save()
// the object or an error
let s: Single<PFObject> = PFObject(className: "GameScore", objectId: "xWMyZ4YEGZ").rx.fetch()
Konshin, [email protected]
Parse_RxSwift is available under the MIT license. See the LICENSE file for more info.