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...
Is this the best explanation of Do, Try, Catch, Throws?
This is the best explanation of Do, Try, Catch, Throws
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.
Let’s go
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.
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.
Thrilled to learn again with your new series. Thanks for your step-by-step and clear-cut explanation.
That's great to hear. Thanks for watching Kenji!
You're the most organized and neat SwiftUI RUclipsr I've ever seen in my entire life. I wish you more power with love. ❤❤❤❤
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!
It's blessings and gifted to have you Nick honestly .
Clean and neat stuff. Very detailed explanation … anyone can understand. Thanks for helping us with your videos.
These videos are one of the best things to happen to Swift. Thank you very much.
as a Lead Android Developer, I congratulate you, you explain very good the base.
what a explanation man hats off
Brilliant explanation Nick, you made it very clear.
Thank you so much
Your videos have made me more interested in iOS development
Crystal clear perfect explanation 🔥
Thanks for your step-by-step and clear-cut explanation.
hands down the best SwiftUI, Swift Teacher!
Very clear explanation as always, thank you so much!!!
Thanks Andres!!
Finally you back. Don`t forget about us :)
That was absolutely fantastic! Thank you for sharing such a valuable information!
Nice and clear explanation. Good to see it, thanks for sharing your knowledge!
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 :)
All the playlists are on my GitHub @SwiftfulThinking! I just realized I forgot to push this one though. I’ll do it tomorrow 🫡
@@SwiftfulThinkinggreat 👍
Great stuff and intro lesson for the playlist
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.
Very well done and clear explanation.
Glad you liked it 🥳
You surprise me every time!!
Thank you so much for starting new tutorial series! What will be a schedule for next series?
New videos every Monday and Wednesday!
Thank you, I am excited!
What's up Humberto! Let's do this 😎
12:44 small correction, its actually func 3 not the highlighted one, which is throwing error ‼
Awesome video Nick again..
I like it a lot. Straight to the point. No time wasted!
the best!! I got a big clearty !!
Great video!
oh my its coming.
Good gentle explanation. But I think you should have run it wit the try! in place. :D
I will Try! next time 😂
Request: could you post a link to video recommendations discussed with the videos for future videos? (ie Data injection in this video)
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
@@SwiftfulThinking Thanks!
great as always :-) .. thanks
Good stuff as always!
Thank you so much!
Thanks a lot! Great work!
Thanks a lot
Thanks!
Tnx very good
Hey Nick, any chance you can add this project to your GitHub repo?
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
What happens if you make both trys optional and they both fail?
Oh they both just return "nil"
Rocking a new mac in this course? Perhaps an M1 mac... can't hear any fans freaking out 😀
New microphone 😁
@@SwiftfulThinking Awesome!
Thank you so much god bless you