Conclusion
Here’s what you did in this lesson:
- Learned what MVVM is and how it applies to iOS development in SwiftUI.
- Learned the purpose and responsibilities of ViewModels in SwiftUI apps.
- Designed and structured a ViewModel for a specific SwiftUI view.
This was a quick look at “how to do MVVM”. In the next lesson, you’ll take a closer look at how to manage state in view models using the Observation framework.