How to use @EnvironmentObject in SwiftUI | Bootcamp #51

Описание к видео How to use @EnvironmentObject in SwiftUI | Bootcamp #51

The @EnvironmentObject is a super-useful property wrapper that lets us put an observable object into the environment of our SwiftUI application. By doing this, all of these views in the view hierarchy will then have access to this object. This is the perfect solution for any case where you have a class that needs to be accessed by multiple views, but you don't want to manually bind it from view to view to view with initializers.

Next video:    • How to use @AppStorage in SwiftUI | B...  
Last video:    • How to use @ObservableObject and @Sta...  

🤙 WELCOME BACK 🤙

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

DISCORD:   / discord  

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

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

Комментарии

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