美文网首页
Architecting iOS Apps

Architecting iOS Apps

作者: John易筋 | 来源:发表于2017-07-04 11:56 被阅读0次

    Architecting iOS Apps

    1、MVC

    2、VIPER

    What is VIPER?

    VIPER is an application of Clean Architecture to iOS apps. The word VIPER is a backronym for View, Interactor, Presenter, Entity, and Routing. Clean Architecture divides an app’s logical structure into distinct layers of responsibility. This makes it easier to isolate dependencies (e.g. your database) and to test the interactions at the boundaries between layers:


    Main Parts of VIPER are:

    • View: displays what it is told to by the Presenter and relays user input back to the Presenter.
    • Interactor: contains the business logic as specified by a use case.
    • Presenter: contains view logic for preparing content for display (as received from the Interactor) and for reacting to user inputs (by requesting new data from the Interactor).
    • Entity: contains basic model objects used by the Interactor.
    • Routing: contains navigation logic for describing which screens are shown in which order.

    Reference:

    3、MVVM

    相关文章

      网友评论

          本文标题:Architecting iOS Apps

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