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

Поділитися
Вставка
  • Опубліковано 27 жов 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 Рік тому +6

    Thanks!

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

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

    Your tutorials are really straightforward and thoroughly explained. Thanks.

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

    Great lesson! Subbed!

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

    Great, thanks Karin ❤

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

    Thanks for your effort Karin 👍

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

    Excellent as always! 🙂

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

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

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

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

    You're the best!

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

    Great content, keep it coming please.

  • @穆宁-g9h
    @穆宁-g9h 11 місяців тому +2

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

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

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

    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.

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

  • @lifebystefnJas
    @lifebystefnJas 3 дні тому

    Update for Swift 6?

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

    🔥

  • @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 13 днів тому

      @@indiekidukloll that’s basically the same

  • @BrandonGruber0
    @BrandonGruber0 10 місяців тому

    Thanks!

  • @AndrewDChristie
    @AndrewDChristie 9 місяців тому

    Thanks!

  • @AndrewDChristie
    @AndrewDChristie 9 місяців тому

    Thanks!

  • @AndrewDChristie
    @AndrewDChristie 9 місяців тому

    Thanks!