ReSwiftRx 1.0.3

ReSwiftRx 1.0.3

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2016年12月
SwiftSwift 版本3.0
SPM支持 SPM

Vincenzo Scamporlino 维护。



 
依赖项
ReSwift>= 0
RxSwift>= 0
 

ReSwiftRx 1.0.3

ReSwiftRx

ReSwiftRx 是 ReSwift 的一个扩展,它通过 Store 从中创建 RxSwift 的状态可观察序列。

示例

asObservable()

参考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 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中:

pod "ReSwiftRx"

作者

Vincenzo Scamporlino, [email protected]

许可证

ReSwiftRx 可在 MIT 许可证下获得。有关更多信息,请参阅 LICENSE 文件。