11
Design Patterns to Solve Complex Questions
In previous chapters, we discussed different aspects of iOS development. We covered UIKit, Swift, reactive programming, SwiftUI, Core Data, and many more. These building blocks help us achieve our next level – design patterns.
Design patterns are like tools. Each one of them solves a different problem or a different need, such as the following:
- Do we need to change the behavior of a particular instance? We can use dependency injection (DI).
- Do we have a complex state to manage? We can use Model-View-ViewModel (MVVM).
- Do we need to define communication between objects? We can use delegation.
The more we expand our toolbox with design patterns, the more problems we can solve. We should remember that ...
Get The Ultimate iOS Interview Playbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.