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

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ค. 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 44

  • @austincollins3888
    @austincollins3888 ปีที่แล้ว +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  ปีที่แล้ว +8

      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 ปีที่แล้ว +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 ปีที่แล้ว

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

    • @Minhaj_Aries
      @Minhaj_Aries 22 วันที่ผ่านมา

      @@appstuff5778 Yeah bro, Indeed... your videos have helped me alot.. Trust me you're one of the best in town.. Eagerly excited to watch your bootcamp videos from this weekend.

  • @rank1macro
    @rank1macro ปีที่แล้ว +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  ปีที่แล้ว +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

  • @peepal_studios
    @peepal_studios ปีที่แล้ว +1

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

  • @Stromeo_
    @Stromeo_ 4 หลายเดือนก่อน

    Such a great explanation! Thank you

  • @davidcbeaudoin
    @davidcbeaudoin ปีที่แล้ว +1

    Great information here. Thanks for sharing it.

  • @payambassi8784
    @payambassi8784 11 หลายเดือนก่อน

    Great example thank you for the video

  • @syunwei
    @syunwei 6 หลายเดือนก่อน

    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!!

  • @eggsbenedict5989
    @eggsbenedict5989 ปีที่แล้ว

    straightforward and easy to understand, thank you so much !

    • @chezchezchezchez
      @chezchezchezchez 11 หลายเดือนก่อน

      No, it’s not, it’s still confusing AF

  • @davidgrammatico606
    @davidgrammatico606 ปีที่แล้ว

    Nice video, thanks a lot !

  • @daniel.iosdev
    @daniel.iosdev ปีที่แล้ว

    Thank you!

  • @rahuljamba5846
    @rahuljamba5846 ปีที่แล้ว

    Got it very clearly thanks for sharing !!!!

  • @oldschool84
    @oldschool84 5 หลายเดือนก่อน

    Well explained!

  • @bahadrseyfi9354
    @bahadrseyfi9354 ปีที่แล้ว +2

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

  • @MAbbas-ih7sz
    @MAbbas-ih7sz ปีที่แล้ว

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

  • @user-mr2zc2pv8d
    @user-mr2zc2pv8d 9 หลายเดือนก่อน

    Best explanation !!!

  • @lumi6394
    @lumi6394 ปีที่แล้ว

    Nice !! Please make more videos like this.

  • @nesalexy
    @nesalexy 2 หลายเดือนก่อน

    thanks for the video, 5:34 StateObject vs ObservedObject

  • @syunwei
    @syunwei 6 หลายเดือนก่อน

    Thanks

  • @adeby
    @adeby ปีที่แล้ว +1

    Awesome videos!

  • @user-ji2us5jo3n
    @user-ji2us5jo3n 2 หลายเดือนก่อน

    Top explanation

  • @LukePighetti
    @LukePighetti ปีที่แล้ว +2

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

  • @felixseehof
    @felixseehof ปีที่แล้ว +1

    Großartig

  • @jacobjohnsonbroche
    @jacobjohnsonbroche ปีที่แล้ว

    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 TH-cam. 🙏

  • @bennymushiya9925
    @bennymushiya9925 ปีที่แล้ว

    Amazing content

  • @ashleydube3710
    @ashleydube3710 ปีที่แล้ว

    New subscriber here, please keep up the videos.

  • @Stricken174
    @Stricken174 4 หลายเดือนก่อน

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

  • @gmostafaali
    @gmostafaali ปีที่แล้ว

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

    • @appstuff5778
      @appstuff5778  ปีที่แล้ว +1

      I will add that to my todo list :)

  • @ChrisLaupama
    @ChrisLaupama 8 หลายเดือนก่อน

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

  • @ShredzZ
    @ShredzZ ปีที่แล้ว +3

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

    • @appstuff5778
      @appstuff5778  ปีที่แล้ว +2

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

  • @chetandhowlaghar5166
    @chetandhowlaghar5166 5 หลายเดือนก่อน

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

  • @mihailpopa3056
    @mihailpopa3056 2 หลายเดือนก่อน

    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.

  • @LebenWerden
    @LebenWerden 7 หลายเดือนก่อน

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

  • @abdulrb786
    @abdulrb786 11 หลายเดือนก่อน

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

    • @appstuff5778
      @appstuff5778  11 หลายเดือนก่อน

      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 ปีที่แล้ว

    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?