Enum Associated Values + Swift Result Type

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

КОМЕНТАРІ • 26

  • @The1stKing
    @The1stKing 3 роки тому +1

    This video really helped a random junior developer from Serbia (me). Thank you.

  • @BrandonHowardRay
    @BrandonHowardRay 2 роки тому +1

    You’re content is exactly what I’m looking for as an experienced engineer learning swift for the first time. Thank you so much

  • @g-3409
    @g-3409 3 роки тому +2

    I hope you are going to explain Combine and functional Swift one day. There are others that have tried to do so, but you explain things in a way that makes it easy to understand. I have a really big problem in understanding teachers who have very thick or “not native” accents, so a lot of the content out there is hard to understand. I really appreciate your work!

    • @StewartLynch
      @StewartLynch  3 роки тому

      Thanks. I am learning Combine myself right now so once I have a handle on it I will do some practical examples. It is a big topic.

    • @g-3409
      @g-3409 3 роки тому

      @@StewartLynch I know. I made a IAP store with Combine, and now I’m working on converting my networking library to work with Combine. I got the Practical Combine book by Donny Wals, that was a really big help. His blog is also really great.

  • @Sokrates8
    @Sokrates8 3 роки тому

    For the first time, the Result Type makes sense to me. Thank you.

    • @StewartLynch
      @StewartLynch  3 роки тому

      That’s great. I use it all the time now. So much cleaner.

  • @multitudes389
    @multitudes389 3 роки тому +1

    Beautiful. Enums are great!

  • @g-3409
    @g-3409 3 роки тому

    Great topic and marvelous presentation. Fantastic! Thanks a lot! BTW, are you Canadian?

    • @StewartLynch
      @StewartLynch  3 роки тому +2

      🇨🇦🇨🇦🇨🇦🇨🇦 all the way

  • @ShooMPozitiV
    @ShooMPozitiV 3 роки тому +1

    It’s great lesson! Thanks a lot.

  • @nagarajvrao7249
    @nagarajvrao7249 3 роки тому

    Why can't we confirm enum with the associated types to hashable protocol?
    What's the workaround? so that i create set/dictionary with that?

    • @StewartLynch
      @StewartLynch  3 роки тому

      This might help you. developer.apple.com/documentation/swift/hashable

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

    I am not using playground and I’m feeling kind of stupid because I’m trying to incorporate these in a view by using text and a number of other things to the point I just need to ask how to properly put these into view rather than print?

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

    I'm under the impression that if I had never ever heard about enums before it would be much easier for me to understand what they did with them in Swift. But I have programmed in quite a few languages before and conceptually what I think about enums is very different from that I see in Swift. it's like everything is the same in a way, I mean enums, classes, structs, everything has such complex syntax. an enum with methods!? everything is an object except when it isn't. I feel my brain is melting

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

      Hang in there. I have a number of videos where I use enums. They are incredibly powerful.

  • @henryhudson2340
    @henryhudson2340 3 роки тому

    Edit -> Format -> Spelling and Grammar -> check spelling while typing for spell checker really cook feature of Xcode only found last week helps me a lot with typos

    • @StewartLynch
      @StewartLynch  3 роки тому

      I had that enabled as well, but often would give me false positives so I guess I turned it off.

    • @henryhudson2340
      @henryhudson2340 3 роки тому

      @@StewartLynch its just a good system for me it does have that annoying red dots when you use short hand (QandA) etc. this video topic is great think with enum functional programming and swiftUI you can do almost anything thanks

  • @mhfs61
    @mhfs61 3 роки тому

    👍🏼👍🏼👍🏼

  • @markme7092
    @markme7092 3 роки тому

    make a video for “UserDefaults to save firebase logged In”.

    • @StewartLynch
      @StewartLynch  3 роки тому +1

      Sorry. I don’t understand what you mean by this.

    • @markme7092
      @markme7092 3 роки тому

      @@StewartLynch I meant how to UserDeafaults save auto login in SwiftUI? Hope you understood what I meant. Thank you very much !

    • @StewartLynch
      @StewartLynch  3 роки тому +1

      Firebase caches the fact that you are logged in so there is no need to store that in UserDefaults.