TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Dec 2016 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Vincenzo Scamporlino.
Depends on: | |
ReSwift | >= 0 |
RxSwift | >= 0 |
ReSwiftRx is an extension for ReSwift that provides a method to create a RxSwift’s observable sequence of states from a Store.
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
})
ReSwiftRx is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ReSwiftRx"
Vincenzo Scamporlino, [email protected]
ReSwiftRx is available under the MIT license. See the LICENSE file for more info.