Combine+SwiftUI VS RxSwift+UIKit

作者: Sunooo | 来源:发表于2020-08-20 06:16 被阅读0次

    从Apple app-store
    网站可以看出来

    iOS13覆盖率
    过去4年新增设备有92%是iOS13,一共有81%的设备是iOS13。
    既然如此,新项目可以直接从iOS13开始了。
    如果之前用的是RxSwift+UIKit,熟悉响应式编程理念和方法,那么从iOS13开始,可以直接使用SwiftUI+Combine。
    Combine是Apple工程师开发的闭源框架,也是响应式编程理念,API与RxSwift相似,但是执行效率要高于RxSwift。
    SwiftUI在布局界面上效率也比UIKit高,大多数场景也是适用的。

    本文会持续收集参考资料,对比RxSwift和Combine。

    References

    RxSwift to Apple’s Combine “Cheat Sheet”
    https://medium.com/gett-engineering/rxswift-to-apples-combine-cheat-sheet-e9ce32b14c5b
    Combine vs RxSwift: Introduction to Combine and Differences
    https://dzone.com/articles/combine-vs-rxswift-introduction-to-combine-amp-dif#:~:text=In%20Combine,%20every%20Publisher%20needs,errors%20that%20should%20be%20launched.
    Will Combine kill RxSwift?
    https://medium.com/flawless-app-stories/will-combine-kill-rxswift-64780a150d89

    这里直接放地址链接,因为有时候简书不跳转。

    相关文章

      网友评论

        本文标题:Combine+SwiftUI VS RxSwift+UIKit

        本文链接:https://www.haomeiwen.com/subject/dasqrktx.html