Understanding Swift KeyPaths

Поділитися
Вставка
  • Опубліковано 29 гру 2024

КОМЕНТАРІ • 31

  • @TuanHoang-qj3yq
    @TuanHoang-qj3yq Рік тому +2

    Thank you for your dedication to providing excellent content with great clarity. I still have not clearly seen the benefit of keyPath. I have tried to use “dot notation” approach to the two practical examples and achieved the same results as with keyPath’s approach. I am sure that it is powerful but with my current limited knowledge unfortunately, I have not been able to appreciate the significant benefits of keyPath yet. 😢 I hope I soon will.

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

    great video Stewart!

  • @CarterTsai-p5t
    @CarterTsai-p5t Рік тому +1

    The content is always great as usual. Thank you for all your work and sharing these.

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

    Great video. Learned some new techniques. Thank you.

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

    Great series Stewart!

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

    Great examples, thank you so much for your work 🙂

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

    Thanks again! I've needed this one (and one on subscripts, so ditto on the request for that) for a long time.

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

      BTW, I had the same issue showing the view in the playground.

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

    Awesome! Love the format of these videos! Thank you 😊

  • @Mahadev-x7u
    @Mahadev-x7u Рік тому

    Thanks a lot for SwiftUI’s examples 💫 please keep them up 🎈

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

    Very helpful, thanks.

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

    Thank you!

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

    Thanks a lot Mr Stewart! This series is really helpful. Any chance you'd cover Swift subscripts in one of the videos? I actually requested you cover Swift KeyPaths when you asked on Twitter, so thanks for this!

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

      That sounds like a good topic. I will check it out.

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

      @@StewartLynch Thanks.

  • @РоманРоман-н4н
    @РоманРоман-н4н 9 місяців тому

    wow, such a great job, thanks! looks like way safer js))))

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

    An extremely useful video. Thanks to it I (and some of your other videos, ie CoreData) I was able to figure out and now share a use case for key paths. Suppose you want a picker that will then display one total for any number of parameters in a CoreData entity. Populating an array with a struct that included a name and a keypath of type “ReferenceWritableKeyPath did the job. The structure name is used for the picker and the tag links it to variable that is used for the reducing function (in my case a static function locate in the core data properties extension. Keypaths add a whole new dimension to data manipulation where parameters can now be treated as data as well. Perhaps there is another way to do this as well. I did try use an enum and associated value constructor and a static var all cases but this did not work for me.

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

    Great!!!!!

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

    Great as always my question do u have any database course Tutorial to buy or watch? Thx sir

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

      I have a series on using Realm, ua-cam.com/play/PLBn01m5Vbs4B8xgS_iEEuJtM_3BuZ7fiV.html and another that uses Core Data and it starts here ua-cam.com/video/og1R6HIYU5c/v-deo.html

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

      @@StewartLynch thx 🙏🏼

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

      Would you recommend Core Data or Realm for a new project Stewart?

    • @StewartLynch
      @StewartLynch  Рік тому +2

      I would recommend Core Data and I would also recommend Mark Moeykens book on Core Data. www.bigmountainstudio.com/core-data/77jt8

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

      @@StewartLynch thank you!

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

    nice

  • @jidhabraham3383
    @jidhabraham3383 7 місяців тому

    same

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

    Great content except example of wine.. as for me