SwiftUI: MVVM Data Persistence Decoupling Using Dependency Injection (User Defaults) Part 1 of 2

preview_player
Показать описание
In SwiftUI (iOS) decouple your View and ViewModel code from your data persistence code. This is often a messy business unless you create the right architecture. I will show you how to do this with Combine framework and Dependency Injection using protocol and the "any" key word. With this you don't have to touch the View and ViewModel code even if you completely change the back end. This will show how to create a MockDataService and UserDefault based DataService. This is part 1. The next video with demonstrate how to use CoreData for the data persistence.

Рекомендации по теме
Комментарии
Автор

This video is so informative and definitely deserves to have thousands of views!

karlalalalalala
Автор

Your videos are amazing and add a lot of high level value thank you.

dslkgjsdlkfjd
join shbcf.ru