Latest 0.2.2
Homepage https://github.com/appunite/RxStefan
License MIT
Platforms ios 10.0
Dependencies Stefan, RxSwift, RxCocoa
Authors

Stefan logo

This repo is only about RxSwift extensions for Stefan library. Please follow Stefan repo for general Stefan issues.

Example usage

dataSignal                       // signal of some collection, i.e. Observable<Response<[Fruit]>>
    .mapToLoadableState()        // your mapping function that transforms response into ItemsLoadableState
    .bind(to: stefan.rx.loader)  // binding extension from this library
    .disposed(by: disposeBag)    

And that’s that! So simple to bind your response of items into stefan :)

You can also observe states changing

stefan.rx.stateObservable
    .subscribe(onNext: { [weak self] (state) in

        // most recent state 
        ...

    }).disposed(by: disposeBag)

Carthage

Add the following entry in your Cartfile:

github "appunite/RxStefan"

There is no need to have github "appunite/Stefan" in Cartfile.

Then run carthage update.

Contribution

Project is created and maintened by Piotr Bernad and Szymon Mrozek.

We could use your help with reporting or fixing bugs. We would also like to hear from you about feature suggestions. If you have an idea how to make Stefan better you are welcome to send us a Pull Request.

License

RxStefan is released under an MIT license. See License.md for more information.

Latest podspec

{
    "name": "RxStefan",
    "version": "0.2.2",
    "summary": "RxStefan - reactive extensions for Stefan.",
    "homepage": "https://github.com/appunite/RxStefan",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Szymon Mrozek": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "dependencies": {
        "Stefan": [],
        "RxSwift": [],
        "RxCocoa": []
    },
    "swift_version": "4.1",
    "source": {
        "git": "https://github.com/appunite/RxStefan.git",
        "tag": "0.2.2"
    },
    "source_files": "RxStefan/*.swift"
}

Pin It on Pinterest

Share This