DevPrep

All topics

🏗 Design patterns: iOS interview questions

  1. Observer Junior PRO
  2. Delegation Junior PRO
  3. Singleton Junior PRO
  4. Lazy initialization Junior PRO
  5. Abstract Factory Middle PRO
  6. Factory Method Middle PRO
  7. Delegate, closure, Combine or AsyncSequence: how do you choose a callback channel? Middle PRO
  8. Builder: why use it in Swift when you have default parameters? Middle PRO
  9. Strategy: how do you swap an algorithm without if/switch all over the code? Middle PRO
  10. Adapter and Facade: how do you isolate a third-party SDK? Middle PRO
  11. Decorator: how do you add caching, logging or retries without changing the class? Middle PRO
  12. How do you gradually remove singletons from legacy code and move to DI? Senior PRO

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store