ReSwiftRx is an extension for ReSwift that provides a method to create a RxSwift's observable sequence of states from a Store.
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, vinz.scamporlino@gmail.com
ReSwiftRx is available under the MIT license. See the LICENSE file for more info.