How to use Do, Try, Catch, and Throws in Swift | Swift Concurrency #1

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • Although these keywords are NOT new to Swift, they are almost always used when using Swift Concurrency. In the following videos in this playlist, we will use Do, Catch, Try, and Throws in every single video! Therefore, it's only logical to iron-out any confusion around these keywords before getting into the heart of this playlist.
    In this video, we learn about Do-Catch blocks, the difference between Try, Try? and Try!, and what it means to Throw an error in Swift!
    Next video: • Download images with A...
    Previous video: • Learn Swift Concurrenc...
    🤙 WELCOME BACK 🤙
    WEBSITE: www.swiftful-t...
    DISCORD: / discord
    GITHUB: github.com/Swi...
    SAY THANKS: www.buymeacoff...

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

  • @Pepe_the_raver
    @Pepe_the_raver 3 месяца назад +4

    Is this the best explanation of Do, Try, Catch, Throws?
    This is the best explanation of Do, Try, Catch, Throws

  • @911gogogo
    @911gogogo Год назад +14

    It's the revolution of SWIFTUI lectures. Nick is really gifted at teaching not only swiftui but everything. This mean he is very good at meta cognitive. Brilliant.

  • @RedPPP
    @RedPPP Год назад +3

    This is amazing. The code snippet demonstrates why each solution is needed based on the improvement made to each variation and explains the need for do-try-catch and why it is the most elegant solution.

  • @philippegden9826
    @philippegden9826 2 года назад +9

    Great to see you back. Looking forward to this series.
    Perhaps one thing to add here: if you don’t catch an error in a do-catch block the calling function can be marked throws and it will automatically throw it up to its calling function.

  • @kenjyfukuda
    @kenjyfukuda 2 года назад +6

    Thrilled to learn again with your new series. Thanks for your step-by-step and clear-cut explanation.

    • @SwiftfulThinking
      @SwiftfulThinking  2 года назад +2

      That's great to hear. Thanks for watching Kenji!

  • @kavinda_dilshan_paramsoodi
    @kavinda_dilshan_paramsoodi 2 года назад +2

    You're the most organized and neat SwiftUI RUclipsr I've ever seen in my entire life. I wish you more power with love. ❤❤❤❤

  • @ABNERJUDE
    @ABNERJUDE 8 месяцев назад +1

    Your explanation here through examples of using the 'do - catch' block and the 'try - throws' made me fully understand when/where to use them. Thank you!

  • @natgenesis5038
    @natgenesis5038 Год назад +1

    It's blessings and gifted to have you Nick honestly .

  • @1ongole1
    @1ongole1 Год назад +2

    Clean and neat stuff. Very detailed explanation … anyone can understand. Thanks for helping us with your videos.

  • @AllanZhang16
    @AllanZhang16 10 месяцев назад

    These videos are one of the best things to happen to Swift. Thank you very much.

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

    as a Lead Android Developer, I congratulate you, you explain very good the base.

  • @dhruvsharma7769
    @dhruvsharma7769 6 месяцев назад +1

    what a explanation man hats off

  • @spradohak
    @spradohak 2 года назад +1

    Brilliant explanation Nick, you made it very clear.
    Thank you so much

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

    Your videos have made me more interested in iOS development

  • @keshavkumar1522
    @keshavkumar1522 2 года назад +1

    Crystal clear perfect explanation 🔥

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

    Thanks for your step-by-step and clear-cut explanation.

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

    hands down the best SwiftUI, Swift Teacher!

  • @andresraigoza2082
    @andresraigoza2082 2 года назад +2

    Very clear explanation as always, thank you so much!!!

  • @romanpurishy
    @romanpurishy 2 года назад +1

    Finally you back. Don`t forget about us :)

  • @olenastepaniuk2878
    @olenastepaniuk2878 11 месяцев назад

    That was absolutely fantastic! Thank you for sharing such a valuable information!

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

    Nice and clear explanation. Good to see it, thanks for sharing your knowledge!

  • @jayantkumar1954
    @jayantkumar1954 2 года назад +3

    awesome videos ... one suggestion , whatever code you write , please add on github, so it will be easy for us to get a reference. Thank you nick for making these quality videos :)

    • @SwiftfulThinking
      @SwiftfulThinking  2 года назад +5

      All the playlists are on my GitHub @SwiftfulThinking! I just realized I forgot to push this one though. I’ll do it tomorrow 🫡

    • @jayantkumar1954
      @jayantkumar1954 2 года назад +2

      @@SwiftfulThinkinggreat 👍

  • @3ilz
    @3ilz 2 года назад +1

    Great stuff and intro lesson for the playlist

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

    one day your kids will be so lucky as their father can teach them complex things in a very simple way. As a result of that your kids will be the best performing students in an entire class. Woh... I wish you were my brother Nick.

  • @JumpingCow
    @JumpingCow 2 года назад +1

    Very well done and clear explanation.

  • @김현진-t8r6f
    @김현진-t8r6f 11 месяцев назад

    You surprise me every time!!

  • @МирославБерезовский-ю4к

    Thank you so much for starting new tutorial series! What will be a schedule for next series?

  • @hickam16
    @hickam16 2 года назад +1

    Thank you, I am excited!

  • @mazedar_tv
    @mazedar_tv 6 месяцев назад

    12:44 small correction, its actually func 3 not the highlighted one, which is throwing error ‼

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

    Awesome video Nick again..

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

    I like it a lot. Straight to the point. No time wasted!

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

    the best!! I got a big clearty !!

  • @BenjaminEggerstedt
    @BenjaminEggerstedt 2 года назад +1

    Great video!

  • @mhmtkrnlk
    @mhmtkrnlk 2 года назад +3

    oh my its coming.

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

    Good gentle explanation. But I think you should have run it wit the try! in place. :D

  • @crazytrashman123
    @crazytrashman123 2 года назад +1

    Request: could you post a link to video recommendations discussed with the videos for future videos? (ie Data injection in this video)

    • @SwiftfulThinking
      @SwiftfulThinking  2 года назад +1

      I tried to include the relevant links, I don't think there are too many. This is the Dependency Injection video: ruclips.net/video/E3x07blYvdE/видео.html

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

      @@SwiftfulThinking Thanks!

  • @mksmithycz
    @mksmithycz 2 года назад +1

    great as always :-) .. thanks

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

    Good stuff as always!

  • @multimedia4953
    @multimedia4953 2 года назад +1

    Thank you so much!

  • @Abe-fb2lj
    @Abe-fb2lj 2 года назад

    Thanks a lot! Great work!

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

    Thanks a lot

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

    Thanks!

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

    Tnx very good

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

    Hey Nick, any chance you can add this project to your GitHub repo?

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

    I love your videos, but everything is too small, can you zoom in or make the fonts bigger while working on Xcode, unfortunately I have to stop watching because on my iPad 12.9, I can barely see

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

    What happens if you make both trys optional and they both fail?

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

      Oh they both just return "nil"

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

    Rocking a new mac in this course? Perhaps an M1 mac... can't hear any fans freaking out 😀

  • @PaulDabit
    @PaulDabit Месяц назад

    Thank you so much god bless you