Create ViewModel with @StateObject and @EnvironmentObject for MVVM | SwiftUI Map App #2

Описание к видео Create ViewModel with @StateObject and @EnvironmentObject for MVVM | SwiftUI Map App #2

The core of our MVVM architecture is the ViewModel layer. This class will connect the Views with the Data models! In this video we will create a ViewModel to manage the data for our main View and then set the new ViewModel as an @EnvironmentObject so that all of the other views in the view hierarchy can have access to it.

🤙 WELCOME BACK 🤙

WEBSITE: https://www.swiftful-thinking.com

DISCORD:   / discord  

GITHUB: https://github.com/SwiftfulThinking/

SAY THANKS: https://www.buymeacoffee.com/nicksarno

Комментарии

Информация по комментариям в разработке