Best architectural approaches for building iOS networking applications (REST clients)

后端 未结 13 1142
-上瘾入骨i
-上瘾入骨i 2020-12-22 14:11

I\'m an iOS developer with some experience and this question is really interesting to me. I saw a lot of different resources and materials on this topic, but nevertheless I\

相关标签:
13条回答
  • 2020-12-22 15:08

    In mobile software engineering, the most widely used are Clean Architecture + MVVM and Redux patterns.

    Clean Architecture + MVVM consist of 3 layers: Domain, Presentation, Data layers. Where the Presentation Layer and Data Repositories Layer depend on Domain Layer:

    Presentation Layer -> Domain Layer <- Data Repositories Layer
    

    And Presentation Layer consist of ViewModels and Views (MVVM):

    Presentation Layer (MVVM) = ViewModels + Views
    Domain Layer = Entities + Use Cases + Repositories Interfaces
    Data Repositories Layer = Repositories Implementations + API (Network) + Persistence DB
    

    In this article, there is a more detailed description of Clean Architecture + MVVM https://tech.olx.com/clean-architecture-and-mvvm-on-ios-c9d167d9f5b3

    0 讨论(0)
提交回复
热议问题