DON'T Make this MISTAKE || StateObject vs ObservedObject | What's the Difference?

Sdílet
Vložit
  • čas přidán 2. 06. 2024
  • What's the difference between @StateObject vs @ObservedObject? When do you use one vs the other? Find out in this video!
    🔴@State vs @Binding video:
    • NEVER Confuse @State v...
    🔴 Become a member to access Exclusive Content :
    www.stephancodes.com/blank-page
    🖥️ ONLINE COURSES & APPS
    👉 Pro Courses:
    www.stephancodes.com/videos
    👉 FREE UBER SwiftUI Course
    • 🔴 Let's Build UBER wit...
    👉 iOS App Templates:
    www.stephancodes.com/shop
    👉 FREE Twitter SwiftUI Course
    • 🔴 Let's Build Twitter ...
    Social Media:
    Instagram - @stephan.dowless
  • Věda a technologie

Komentáře • 43

  • @austincollins3888
    @austincollins3888 Před rokem +10

    I need a full iOS bootcamp! I’ve watched a ton of people on YT and I’m also well into Angela Yu’s bootcamp on Udemy but for whatever reason I learn so much better from your stuff! Love the videos man, thank you.

    • @appstuff5778
      @appstuff5778  Před rokem +7

      Angela Yu is poopy. Her content is very basic. I am in the process of making my bootcamp now. It is going to be EPIC

    • @austincollins3888
      @austincollins3888 Před rokem +3

      @@appstuff5778 so the entire scope of her bootcamp was very appealing and that coupled with a ton of positive reviews is what made me go that route but yeah for sure the way she covers each topic is very basic and boring. I’ve learned some from her don’t get me wrong but just running through a couple of your videos and building the Twitter clone has taught me so much more and in a way that I can retain the information. Can’t wait for the bootcamp!

    • @raychen4458
      @raychen4458 Před rokem

      @@appstuff5778 Please inform us when you launch your bootcamp. I would immediately sign up xdd

  • @peepal_studios
    @peepal_studios Před 11 měsíci +1

    My hunting is over now for understanding the stateObject and ObservedObject. Thanks for the clear explanation.

  • @Stromeo_
    @Stromeo_ Před 2 měsíci

    Such a great explanation! Thank you

  • @syunwei
    @syunwei Před 5 měsíci

    Thank you very much for the video!!! It explains the differences very well and saved me lots of time on reading the articles that aren't as clear as this video! Thanks!!

  • @davidcbeaudoin
    @davidcbeaudoin Před rokem +1

    Great information here. Thanks for sharing it.

  • @rank1macro
    @rank1macro Před rokem +2

    Damn you are starting off 2023 really well, so many new videos to watch. Thank you, really great mentor and teacher! Appreciate new videos so much, especially the leet code one!
    Would love to see you doing more of these as well, because that is pretty hard for me and I like your perspective on this.

    • @appstuff5778
      @appstuff5778  Před rokem +1

      I am making a full Leetcode course! It will cover solutions to over 300 LeetCode problems. I will post some of them on YT

  • @rahuljamba5846
    @rahuljamba5846 Před rokem

    Got it very clearly thanks for sharing !!!!

  • @nesalexy
    @nesalexy Před měsícem

    thanks for the video, 5:34 StateObject vs ObservedObject

  • @payambassi8784
    @payambassi8784 Před 9 měsíci

    Great example thank you for the video

  • @oldschool84
    @oldschool84 Před 4 měsíci

    Well explained!

  • @davidgrammatico606
    @davidgrammatico606 Před 11 měsíci

    Nice video, thanks a lot !

  • @eggsbenedict5989
    @eggsbenedict5989 Před rokem

    straightforward and easy to understand, thank you so much !

  • @LukePighetti
    @LukePighetti Před rokem +2

    In a previous video you alluded to environment objects. Can you cover those for us? Grateful for your content.

  • @jacobjohnsonbroche
    @jacobjohnsonbroche Před rokem

    hey Stephan, this was the video I was looking for thanks so much, quick question do you know possibly when you'll make an update to the photosui, and photo picker? I bought your course on udemey and wanted to know if you'll post an update there or here on CZcams. 🙏

  • @user-mr2zc2pv8d
    @user-mr2zc2pv8d Před 8 měsíci

    Best explanation !!!

  • @adeby
    @adeby Před rokem +1

    Awesome videos!

  • @mihailpopa3056
    @mihailpopa3056 Před měsícem

    What if the ObservedObject is injected into the child through the constructor, but the object is only initialized in the constructor so the child is the only owner of the object.

  • @bahadrseyfi9354
    @bahadrseyfi9354 Před rokem +2

    Your explanation is very good, I look forward to the continuation of the sharing 💪

  • @MAbbas-ih7sz
    @MAbbas-ih7sz Před rokem

    Easiest tutorial for understanding of StateObject and ObservedObject thanks for that ❤❤❤❤

  • @lumi6394
    @lumi6394 Před rokem

    Nice !! Please make more videos like this.

  • @daniel.iosdev
    @daniel.iosdev Před rokem

    Thank you!

  • @user-ji2us5jo3n
    @user-ji2us5jo3n Před měsícem

    Top explanation

  • @Stricken174
    @Stricken174 Před 3 měsíci

    This will work if your child view will not be reused, because it have tight coupling with concrete viewModel type.

  • @ChrisLaupama
    @ChrisLaupama Před 7 měsíci

    Can you give an update using @Observable? Trying to understand what to learn

  • @syunwei
    @syunwei Před 5 měsíci

    Thanks

  • @bennymushiya9925
    @bennymushiya9925 Před rokem

    Amazing content

  • @LebenWerden
    @LebenWerden Před 5 měsíci

    Min 5:05
    Which View is updated? body or the StateVsObserved?

  • @ashleydube3710
    @ashleydube3710 Před rokem

    New subscriber here, please keep up the videos.

  • @felixseehof
    @felixseehof Před rokem +1

    Großartig

  • @chetandhowlaghar5166
    @chetandhowlaghar5166 Před 3 měsíci

    Does pasing this to the childview as an environmentobject also be the same as observing the stateObject ??

  • @ShredzZ
    @ShredzZ Před rokem +3

    Hi, do you think iOS dev is viable option if I want to be full time freelancer?

    • @appstuff5778
      @appstuff5778  Před rokem +2

      Absolutely. The demand for app developers, as well as mobile apps, is very high

  • @gmostafaali
    @gmostafaali Před rokem

    Very well explanations, thank you. Would you make a course AirBnb clone?

  • @abdulrb786
    @abdulrb786 Před 10 měsíci

    I am confused @15:00 he mentioned retain cycle. How struct can have retain cycle???🤔🤔🤔

    • @appstuff5778
      @appstuff5778  Před 10 měsíci

      Structs can absolutely have retain cycles. When closures are implemented, they can be treated as reference types, which can result in retain cycles

  • @dotnetdevni
    @dotnetdevni Před rokem

    Apple could dominate the open source cross platform community if they wanted to swift is a beutifull language and would beat the pants of anything google and microsoft have come up with so far for cross platform do u ever think they will go cross platform?