vinzscam / ReSwift-Rx

Rx extension for ReSwift's Store.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReSwiftRx

ReSwiftRx is an extension for ReSwift that provides a method to create a RxSwift's observable sequence of states from a Store.

Version License Platform

Example

asObservable()

Following the example explained in ReSwift:

let mainStore = Store<AppState>(
    reducer: CounterReducer(),
    state: nil
)
//subscribe to store's events
let disposable = mainStore.asObservable()
	.subscribe(onNext: { state in
    	//reflect the app state into views
    })

Requirements

Installation

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

pod "ReSwiftRx"

Author

Vincenzo Scamporlino, vinz.scamporlino@gmail.com

License

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

About

Rx extension for ReSwift's Store.

License:MIT License


Languages

Language:Swift 80.2%Language:Ruby 19.8%