SwiftUI Data Flow with the new Observation - simpler SwiftUI code and improved performance in iOS 17

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024

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

  • @patgoo2
    @patgoo2 ปีที่แล้ว +5

    This is great. I love the diagrams that make the iOS 17 data flow clear and show the difference between pre iOS 17

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

      Happy that you like the diagrams ;)

  • @AlessandroBellino
    @AlessandroBellino ปีที่แล้ว +5

    Amazingly Clear, as always.

  • @tonibuhlmann6594
    @tonibuhlmann6594 ปีที่แล้ว +5

    Great tutorial. Very well explained. Thank you so much!

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

    Thanks for a wonderful tutorial. I liked the focus you provided on refreshing (and the Color.random trick :) ) and it was great to compare the old and new ways. Observation is a breath of fresh air for an old programmer like me - I've had to struggle with c# bindings and NotifyPropertyChanged events and performance was always a visible issue with nested classes. You have a knack for anticipating the questions your audience has for sure :)

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

    Great video, helped me. I did the migration of my app (around 30k lines of code) to the new Observation framework yesterday evening and I realised that Binding is probably meant to stay. At least, I currently don't see how Binding can be completely replaced.

  • @eostarman
    @eostarman ปีที่แล้ว +6

    Thanks!

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

    Your tutorials are really straightforward and thoroughly explained. Thanks.

  • @穆宁-g9h
    @穆宁-g9h ปีที่แล้ว +2

    What you want to express is that we can simplify the design pattern of MVVM to the design pattern of VM?😮

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

    It’s more efficient and easier to preview if you pass book.title into the View init in instead of book

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

    Although this is another good tutorial Prater, it still relies on NavigationView, which is to be deprecated.
    Right now I am trying to meld both your NavigationStack video (A Full Tour of NavigationStack , NavigationLink and navigationDestination - SwiftUI tutorial 2022) and this workflow of keeping views updates and when to use persistent data.

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

    Great lesson! Subbed!

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

    I have a rather “intricate” app and I find it so difficult to manage the states. For example, what if I have a class that has an array of structs as one of the properties and this struct has another property that should be an observable class (because some of its properties are going to be edited by the user)? Should everything become an observable class…?

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

    Great, thanks Karin ❤

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

    Thanks for your effort Karin 👍

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

    🏆Outstanding! This inspired me to convert my swift playground project but now I'm stuck figuring how to add a "minimum deployments" section to the general tab of the projects file 😢

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

    Excellent as always! 🙂

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

      Thank you so much 😀

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

    Great content, keep it coming please.

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

    You're the best!

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

    Update for Swift 6?

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

    Is there an advantage to creating an EnvironmentKey vs passing the object with ```.environment(object)``` and accessing it with ```@Environment(Object.self) var object``` ?

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

      Yes EnvironmentKey is for a controller/manager object and .environmentObject is for a Combine pipeline object with published properties.

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

      Please read again. I asked about .environment(SomeObjectName.self) not .environmentObject. The Apple examples I've seen do not create EnvironmentKeys.@@indiekiduk

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

      @@indiekidukloll that’s basically the same

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

    🔥

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

    Thanks!

  • @AndrewDChristie
    @AndrewDChristie 10 หลายเดือนก่อน

    Thanks!

  • @AndrewDChristie
    @AndrewDChristie 10 หลายเดือนก่อน

    Thanks!

  • @AndrewDChristie
    @AndrewDChristie 10 หลายเดือนก่อน

    Thanks!