In this video I am going to give you a decision tree to find the right property wrapper when you work with SwiftUI. @StateObject vs. @ObservableObject vs.@EnvironmentObject. @State vs. @Binding vs. @Published. The new @AppStorage and @SceneStorage property wrappers that let you easily work with UserDefaults.
👉 @State vs @Binding [ Ссылка ]
👉 @ObservedObject vs. @StateObject [ Ссылка ]
👉 @Published vs @State [ Ссылка ]
👉 AppStorage and SceneStorage [ Ссылка ]
⬇️ You can find the image file here [ Ссылка ]
If you liked what you learned and you want to see more, check out one of my courses!
👨💻 my SwiftUI course [ Ссылка ]
👨💻 my Core Data and SwiftUI course [ Ссылка ]
👩🏻💻 Combine course [ Ссылка ]
#SwiftUI #XCode #iOS
Ещё видео!