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

КОМЕНТАРІ • 23

  • @bettygodier
    @bettygodier 3 роки тому

    What a great systemic vision !
    Exactly what I was looking for.
    Thank you

  • @KulturanCov
    @KulturanCov 2 роки тому

    the chart is kind of brilliant. exactly what needs to be shared more when learning these concepts

  • @markvllar
    @markvllar 3 роки тому +1

    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 😂

  • @johnr.5475
    @johnr.5475 3 роки тому +1

    Thanks. Really useful and excellently presented - I understood it.

  • @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.

  • @TechRagh
    @TechRagh 3 роки тому +1

    Thanks for this video! Subscribed ❤️

  • @nindz9272
    @nindz9272 2 роки тому

    This is what I was looking for. Great explanation! Thanks a lot.

  • @volchok1001
    @volchok1001 2 роки тому +2

    Amazing chart and explanation.

  • @ekkogaming5461
    @ekkogaming5461 3 роки тому +2

    great Tutorial! Thank you!! it would've been perfect if we had practical examples.

    • @SwiftyPlace
      @SwiftyPlace  3 роки тому +4

      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!

  • @CorexoDeu
    @CorexoDeu 3 роки тому +1

    I like you videos keep going. Subscribed 👍🏻

  • @manama2chat275
    @manama2chat275 Рік тому +1

    Excellent, you are the top notch

  • @valentine1925
    @valentine1925 Рік тому

    Im here again because we just transitioned to SwiftUI. I hope this will still be relevant for SwiftUI's current version.

  • @cest102
    @cest102 2 роки тому

    This chart was an amazing idea

  • @tannamayur6509
    @tannamayur6509 2 роки тому

    superb explanation 👍

  • @RichardBaileyrichoncode
    @RichardBaileyrichoncode 5 місяців тому

    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?

  • @SergeiKeyVee
    @SergeiKeyVee 3 роки тому

    God bless yt recommendations

  • @danstoian7721
    @danstoian7721 3 роки тому +1

    Hi, is SwiftUI meant also for macOS development or mainly just for iOS apps? :D Thank you!

    • @alec13337
      @alec13337 3 роки тому

      SwiftUI is available either for macOS and iOS apps. However, please keep in mind that there will be minor differences

  • @victorriurean
    @victorriurean Рік тому

    nice

  • @andrejkling3886
    @andrejkling3886 3 роки тому +1

    This lesson is perfect but for more perfection better to show examples in real App... thank you