iOS architecture interview questions
MVC to TCA, MVVM done right, coordinators, dependency injection, classic patterns and modularization.
– interview-ready · 9 questions in this topic
– of 9 tried
Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.
Questions
- MVC, MVVM, VIPER and TCA comparedPick the fix
- MVVM done rightSpot the bug
- The delegate patternPick the fix
- The observer patternPick the fix
- Factory and builder patternsPick the fix
- Dependency injectionSpot the bug
- Strategy and command patternsPick the fix
- The coordinator patternPick the fix
- Modularizing a growing appOrder the steps
Practise this topic
Flashcards · 12
Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.
Quick quiz · 9 questions
One exercise per question, checked as you go. Needs JavaScript.
Mock interview · 1 set
Timed, out loud, then tick what you covered. Needs JavaScript.
Fix this PR · 2 reviews
Review a diff like a senior: flag the lines you'd comment on. Needs JavaScript.
Quick facts
Recall the answer first, then tap Show to check.
Composition root
The one place, usually at app launch, where the object graph is built and dependencies are wired.
Singleton
One shared instance. Acceptable for truly global resources, but inject it so tests can replace it.
MV in SwiftUI
Some SwiftUI apps skip separate view models and put @Observable feature models next to views; the testing argument still applies.
Printable cheat sheet · Review your weak spots in this topic