Переглядів 9,685
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 B...
👉 @ObservedObject vs. @StateObject • SwiftUI by example: @O...
👉 @Published vs @State • @Published vs @State -...
👉 AppStorage and SceneStorage • SwiftUI 2.0 tutorial -...
⬇️ You can find the image file here 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 school.swiftyplace.com/course...
👨💻 my Core Data and SwiftUI course school.swiftyplace.com/course...
👩🏻💻 Combine course school.swiftyplace.com/course...
#SwiftUI #XCode #iOS