Daily iOS
Architecture

Clean Architecture layers

When you apply Clean Architecture on iOS, can you walk me through the layers and the dependency rule?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Domain (entities, use cases, repository protocols) ← Data (implementations) ← Presentation (ViewModel, View), and the dependency rule is that the inner layers don't know the outer ones. Data and Presentation depend on Domain, and Domain knows nothing about UI or networking frameworks.

Share a question