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

Поделиться
HTML-код
  • Опубликовано: 4 сен 2024

Комментарии • 32

  • @patgoo2
    @patgoo2 Год назад +4

    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 ;)

  • @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 :)

  • @tonibuhlmann6594
    @tonibuhlmann6594 Год назад +5

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

  • @AlessandroBellino
    @AlessandroBellino Год назад +5

    Amazingly Clear, as always.

  • @damickillah
    @damickillah Год назад +1

    Your tutorials are really straightforward and thoroughly explained. Thanks.

  • @eostarman
    @eostarman Год назад +5

    Thanks!

  • @indiekiduk
    @indiekiduk Год назад +1

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

  • @jeyhey5320
    @jeyhey5320 Год назад

    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.

  • @JemmaGuaney
    @JemmaGuaney 3 месяца назад

    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.

  • @user-qs5yv2ib6w
    @user-qs5yv2ib6w 9 месяцев назад +1

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

  • @AlanRick26
    @AlanRick26 11 месяцев назад

    🏆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 😢

  • @dre5671
    @dre5671 11 месяцев назад

    Great lesson! Subbed!

  • @janstehlik3939
    @janstehlik3939 Год назад

    Excellent as always! 🙂

  • @unstanbul
    @unstanbul Год назад

    Great, thanks Karin ❤

  • @burakcankurtarr2751
    @burakcankurtarr2751 Год назад

    Thanks for your effort Karin 👍

  • @dmitrygolovin8066
    @dmitrygolovin8066 Год назад

    Great content, keep it coming please.

  • @artem_isakow
    @artem_isakow Год назад

    You're the best!

  • @Desertbynight
    @Desertbynight 10 месяцев назад

    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…?

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

  • @victorriurean
    @victorriurean Год назад

    🔥

  • @AndrewDChristie
    @AndrewDChristie 8 месяцев назад

    Thanks!

  • @AndrewDChristie
    @AndrewDChristie 8 месяцев назад

    Thanks!

  • @BrandonGruber0
    @BrandonGruber0 9 месяцев назад

    Thanks!

  • @AndrewDChristie
    @AndrewDChristie 8 месяцев назад

    Thanks!