Type Extensions in Swift and SwiftUI

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

КОМЕНТАРІ • 22

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

    Very useful and inspiring information. I love these "deeper dives" as they give me ideas how to solve those "can't do dat" moments;...which I seem to encounter more often than I like. If I could, I would like to give more than 1 thumbs up.

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

    Hey Stewart, sir, follow your video from my career first day. It is always helpful and motivating me to perform best.

  • @stephanie-s4f4r
    @stephanie-s4f4r Рік тому

    Love going through your lessons and landing on things like this in first 5 minutes that I know I will use! Thank you!

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

    As always, a great video Stewart. Learn something new today. Thank you.

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

    Very nice, and Swifty indeed. Thanks Steward.

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

    Thank you so much Stewart 👍🏻

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

    Very nice.
    At the end you show different ways of extending through simple extensions, modifiers and extensions encapsulating view modifiers. You state quickly that the las one is the preferred swift way. And it makes sense.
    However which is the best/optimum from a performance memory footprint point of view?

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

      I had this question too - what performance related cautions we must consider when you use such extensions; for example - what if we put a higher order function in a view extension? So, there might be some boundaries - like do's and don's; correct? May be an idea for another video.

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

      I asked this question myself of other more senior devs when i was developing this video and there did not seem to be any indication that performance was an issue one way or the other, but using a ViewModifier seemed to be the preferred method.

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

      I am not sure that there are any down sides to using extensions.

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

      @@StewartLynch Great video as always. Was there any reason given for why the ViewModifier approach was considered better. As you note, the two approaches look very much the same.

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

      I think just because that is how Apple does it.

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

    Thank you Stewart….

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

    Extensions are somewhat mandatory when using Core Data…

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

    do you have any video tutoring how to localize the app ?

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

      No. Sorry

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

      @@StewartLynch well, could you consider making one , please

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

      Never having done that myself, I am afraid that I might botch it. I think others have done ones though.

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

      @@StewartLynch you're my best tutor, I don't trust others ( most of them on Utub are from India) , Please consider,,
      If anyone uploading an app to apple store, then software localization is a must, Please help the community by providing a great service, pointing out a way, a right way ( just like your enumb clip)