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 • SwiftUI tutorial for Beginners - @State vs...
👉 @ObservedObject vs. @StateObject • SwiftUI by example: @ObservedObject vs. @S...
👉 @Published vs @State • @Published vs @State - SwiftUI by example ...
👉 AppStorage and SceneStorage • SwiftUI 2.0 tutorial - @State vs @AppStor...
⬇️ You can find the image file here https://github.com/gahntpo/swiftui-pr...
If you liked what you learned and you want to see more, check out one of my courses!
👨💻 my SwiftUI course https://school.swiftyplace.com/course...
👨💻 my Core Data and SwiftUI course https://school.swiftyplace.com/course...
👩🏻💻 Combine course https://school.swiftyplace.com/course...
#SwiftUI #XCode #iOS