(PDS)

  • Separate the display logic of the UI from the domain (Model) logic.

    • The domain refers to the essential part of the code that serves the purpose of the software.
  • Separation of responsibilities.

  • It is crucial to prevent the leakage of domain (Model) logic to the outside.

    • Pay attention to avoid leaking into UI logic, for example.
    • The reverse is also true.
    • This is also part of Domain-Driven Design, which involves isolating the domain from other layers.
  • MVC, MVP, MVVM.

Architecture

Introduction to iOS App Design Patterns.