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

Поделиться
HTML-код
  • Опубликовано: 27 янв 2025
  • 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...

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

  • @Pepe_the_raver
    @Pepe_the_raver 6 месяцев назад +12

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

  • @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.

  • @911gogogo
    @911gogogo 2 года назад +17

    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.

  • @ABNERJUDE
    @ABNERJUDE 11 месяцев назад +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!

  • @john-markiliev4227
    @john-markiliev4227 24 дня назад

    Really good explaination. Probably the best one on RUclips. Thanks!

  • @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!

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

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

  • @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. ❤❤❤❤

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

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

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

    what a explanation man hats off

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

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

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

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

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

    hands down the best SwiftUI, Swift Teacher!

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

    It's so clear and useful, thanks!

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

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

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

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

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

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

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

    Crystal clear perfect explanation 🔥

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

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

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

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

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

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

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

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

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

    Your videos have made me more interested in iOS development

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

    Great stuff and intro lesson for the playlist

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

    Very well done and clear explanation.

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

    Awesome video Nick again..

  • @김현진-t8r6f
    @김현진-t8r6f Год назад

    You surprise me every time!!

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

    Great video!

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

    Thank you, I am excited!

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

    Good stuff as always!

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

    Thanks a lot! Great work!

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

    the best!! I got a big clearty !!

  • @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.

  • @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

  • @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 👍

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

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

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

    Thank you so much!

  • @superfortekiai
    @superfortekiai 15 дней назад

    Perfect!

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

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

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

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

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

    Thanks a lot

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

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

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

    Thanks!

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

    oh my its coming.

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

    Tnx very good

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

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

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

      Oh they both just return "nil"

  • @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

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

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

  • @PaulDabit
    @PaulDabit 5 месяцев назад

    Thank you so much god bless you