Property wrappers in SwiftUI: How to choose between @EnvironmentObject, @ObservableObject and more

Описание к видео Property wrappers in SwiftUI: How to choose between @EnvironmentObject, @ObservableObject and more

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 - @Sta...  
👉 @ObservedObject vs. @StateObject    • SwiftUI by example: @ObservedObject v...  
👉 @Published vs @State    • @Published vs @State - SwiftUI by exa...  
👉 AppStorage and SceneStorage    • SwiftUI 2.0 tutorial -  @State vs @Ap...  

⬇️ 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

Комментарии

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