Property wrappers in SwiftUI: How to choose between @EnvironmentObject, @ObservableObject and more
Вставка
- Опубліковано 21 сер 2024
- 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/gah...
If you liked what you learned and you want to see more, check out one of my courses!
👨💻 my SwiftUI course school.swiftyp...
👨💻 my Core Data and SwiftUI course school.swiftyp...
👩🏻💻 Combine course school.swiftyp...
#SwiftUI #XCode #iOS
What a great systemic vision !
Exactly what I was looking for.
Thank you
the chart is kind of brilliant. exactly what needs to be shared more when learning these concepts
Thanks for the video. I get the concept, but I swear I keep forgetting them, so I keep coming back watching/reading about these property wrapper things 😂
Thanks. Really useful and excellently presented - I understood it.
The explanation in this video is well done. I found it very helpful in smoothing out the gaps in my understanding using this tree diagram.
Thanks for this video! Subscribed ❤️
This is what I was looking for. Great explanation! Thanks a lot.
Amazing chart and explanation.
Thank you!
great Tutorial! Thank you!! it would've been perfect if we had practical examples.
I am making more tutorials to show practical examples. You are right, this is indeed very important 😁.
@@SwiftyPlace Thank you so much!
I like you videos keep going. Subscribed 👍🏻
Excellent, you are the top notch
Im here again because we just transitioned to SwiftUI. I hope this will still be relevant for SwiftUI's current version.
This chart was an amazing idea
superb explanation 👍
This a great. I misses vision os. And may miss parts of retain cycle.
Would you be interested in collaborating on a tutorial? Maybe docc and playground?
God bless yt recommendations
Hi, is SwiftUI meant also for macOS development or mainly just for iOS apps? :D Thank you!
SwiftUI is available either for macOS and iOS apps. However, please keep in mind that there will be minor differences
nice
This lesson is perfect but for more perfection better to show examples in real App... thank you