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

  Переглядів 9,685

Karin Prater

Karin Prater

3 роки тому

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

КОМЕНТАРІ: 23
@nindz9272
@nindz9272 2 роки тому
This is what I was looking for. Great explanation! Thanks a lot.
@bettygodier
@bettygodier 3 роки тому
What a great systemic vision ! Exactly what I was looking for. Thank you
@TechRagh
@TechRagh 3 роки тому
Thanks for this video! Subscribed ❤️
@markvllar
@markvllar 2 роки тому
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 😂
@manama2chat275
@manama2chat275 Рік тому
Excellent, you are the top notch
@KulturanCov
@KulturanCov Рік тому
the chart is kind of brilliant. exactly what needs to be shared more when learning these concepts
@cest102
@cest102 2 роки тому
This chart was an amazing idea
@tannamayur6509
@tannamayur6509 2 роки тому
superb explanation 👍
@damaniturner6510
@damaniturner6510 3 роки тому
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.
@CorexoDeu
@CorexoDeu 3 роки тому
I like you videos keep going. Subscribed 👍🏻
@johnr.5475
@johnr.5475 3 роки тому
Thanks. Really useful and excellently presented - I understood it.
@SergeiKeyVee
@SergeiKeyVee 2 роки тому
God bless yt recommendations
@victorriurean
@victorriurean Рік тому
nice
@volchok1001
@volchok1001 2 роки тому
Amazing chart and explanation.
@SwiftyPlace
@SwiftyPlace 2 роки тому
Thank you!
@valentine1925
@valentine1925 Рік тому
Im here again because we just transitioned to SwiftUI. I hope this will still be relevant for SwiftUI's current version.
@ekkogaming5461
@ekkogaming5461 3 роки тому
great Tutorial! Thank you!! it would've been perfect if we had practical examples.
@SwiftyPlace
@SwiftyPlace 3 роки тому
I am making more tutorials to show practical examples. You are right, this is indeed very important 😁.
@ekkogaming5461
@ekkogaming5461 3 роки тому
@@SwiftyPlace Thank you so much!
@RichardBaileyrichoncode
@RichardBaileyrichoncode 2 місяці тому
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?
@danstoian7721
@danstoian7721 3 роки тому
Hi, is SwiftUI meant also for macOS development or mainly just for iOS apps? :D Thank you!
@alec528
@alec528 3 роки тому
SwiftUI is available either for macOS and iOS apps. However, please keep in mind that there will be minor differences
@andrejkling3886
@andrejkling3886 3 роки тому
This lesson is perfect but for more perfection better to show examples in real App... thank you
одни дома // EVA mash @TweetvilleCartoon
01:00
EVA mash
Переглядів 5 млн
Історія загиблого Назара Небожинського
00:54
Суспільне Рівне
Переглядів 495 тис.
Data Flow in a SwiftUI App
33:15
CodeWithChris
Переглядів 51 тис.
State & Binding | SwiftUI in 5 minutes | 2020
4:44
Krass Iankov
Переглядів 14 тис.
Занятие 26 - Property Wrappers
27:32
В’ячеслав Білий
Переглядів 6 тис.