测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最后发布 | 2016年12月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 Vincenzo Scamporlino 维护。
依赖项 | |
ReSwift | >= 0 |
RxSwift | >= 0 |
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 文件。