How to create and use extensions - Swift for Complete Beginners

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

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

  • @bbulliard
    @bbulliard 3 года назад +1

    Your video is awesome. I’ve tried to understand extensions by viewing other videos but they are not very well explained nor do they teach the why.
    You explain extensions in such a meaningful, easy to understand way. You are a world class teacher. Thank you so much. Bob

  • @jeffsellark5421
    @jeffsellark5421 3 года назад +1

    using extension for another init to retain the memberwise initialiser, I did not know that. Thanks

  • @bendehart645
    @bendehart645 3 года назад

    Really really helpful stuff!

  • @BlackAsLight448
    @BlackAsLight448 3 года назад

    Since you can use the extension to keep the member wise init and have your own, could you then have several init through extensions for the same struct?

  • @merlingrim2843
    @merlingrim2843 2 года назад

    It doesn’t seem to make sense that the default initializer would be disabled by defining a custom one in a struct as this would also break existing code.
    Or am I missing something?

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

    Looks like we have the same LOTR edition :D 1178 pages