Тёмный

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

Swiftful Thinking
Подписаться 46 тыс.
Просмотров 27 тыс.
50% 1

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-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno

Опубликовано:

 

24 апр 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 60   
@911lalala
@911lalala Год назад
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.
@GabeColors
@GabeColors Год назад
Let’s go
@philippegden9826
@philippegden9826 2 года назад
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.
@RedPPP
@RedPPP 9 месяцев назад
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.
@kenjyfukuda
@kenjyfukuda 2 года назад
Thrilled to learn again with your new series. Thanks for your step-by-step and clear-cut explanation.
@SwiftfulThinking
@SwiftfulThinking 2 года назад
That's great to hear. Thanks for watching Kenji!
@ABNERJUDE
@ABNERJUDE 4 месяца назад
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!
@kdtechniquesofficial6153
@kdtechniquesofficial6153 Год назад
You're the most organized and neat SwiftUI RU-vidr I've ever seen in my entire life. I wish you more power with love. ❤❤❤❤
@natgenesis5038
@natgenesis5038 Год назад
It's blessings and gifted to have you Nick honestly .
@spradohak
@spradohak Год назад
Brilliant explanation Nick, you made it very clear. Thank you so much
@1ongole1
@1ongole1 Год назад
Clean and neat stuff. Very detailed explanation … anyone can understand. Thanks for helping us with your videos.
@AllanZhang16
@AllanZhang16 7 месяцев назад
These videos are one of the best things to happen to Swift. Thank you very much.
@vladimirmoor
@vladimirmoor Год назад
Nice and clear explanation. Good to see it, thanks for sharing your knowledge!
@keshavkumar1522
@keshavkumar1522 2 года назад
Crystal clear perfect explanation 🔥
@olenastepaniuk2878
@olenastepaniuk2878 8 месяцев назад
That was absolutely fantastic! Thank you for sharing such a valuable information!
@emrah309
@emrah309 Год назад
hands down the best SwiftUI, Swift Teacher!
@trungnguyenthanh9233
@trungnguyenthanh9233 Год назад
Thanks for your step-by-step and clear-cut explanation.
@romanpurishy
@romanpurishy 2 года назад
Finally you back. Don`t forget about us :)
@andresraigoza2082
@andresraigoza2082 2 года назад
Very clear explanation as always, thank you so much!!!
@SwiftfulThinking
@SwiftfulThinking 2 года назад
Thanks Andres!!
@dhruvsharma7769
@dhruvsharma7769 3 месяца назад
what a explanation man hats off
@emdutt4012
@emdutt4012 Год назад
Awesome video Nick again..
@cinquain0
@cinquain0 2 года назад
Good stuff as always!
@3ilz
@3ilz Год назад
Great stuff and intro lesson for the playlist
@leunamvon2565
@leunamvon2565 Год назад
as a Lead Android Developer, I congratulate you, you explain very good the base.
@Abe-fb2lj
@Abe-fb2lj Год назад
Thanks a lot! Great work!
@JumpingCow
@JumpingCow 2 года назад
Very well done and clear explanation.
@SwiftfulThinking
@SwiftfulThinking 2 года назад
Glad you liked it 🥳
@BenjaminEggerstedt
@BenjaminEggerstedt 2 года назад
Great video!
@hickam16
@hickam16 2 года назад
Thank you, I am excited!
@SwiftfulThinking
@SwiftfulThinking 2 года назад
What's up Humberto! Let's do this 😎
@user-mw2sq3cw1s
@user-mw2sq3cw1s 8 месяцев назад
You surprise me every time!!
@mksmithycz
@mksmithycz 2 года назад
great as always :-) .. thanks
@jaybhatia3046
@jaybhatia3046 11 месяцев назад
Your videos have made me more interested in iOS development
@MalkyShlomowitz
@MalkyShlomowitz Год назад
the best!! I got a big clearty !!
@mazedar_tv
@mazedar_tv 3 месяца назад
12:44 small correction, its actually func 3 not the highlighted one, which is throwing error ‼
@multimedia4953
@multimedia4953 2 года назад
Thank you so much!
@josemanuelortizsanchez4983
@josemanuelortizsanchez4983 Год назад
Thanks!
@faikcoskuncakr7418
@faikcoskuncakr7418 2 года назад
Thanks a lot
@kdtechniquesofficial6153
@kdtechniquesofficial6153 Год назад
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.
@diaokojafari
@diaokojafari 11 месяцев назад
Tnx very good
@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!
@jayantkumar1954
@jayantkumar1954 2 года назад
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 года назад
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 года назад
@@SwiftfulThinkinggreat 👍
@mhmtkrnlk
@mhmtkrnlk 2 года назад
oh my its coming.
@user-tz7vw1vt2m
@user-tz7vw1vt2m 2 года назад
Thank you so much for starting new tutorial series! What will be a schedule for next series?
@SwiftfulThinking
@SwiftfulThinking 2 года назад
New videos every Monday and Wednesday!
@crazytrashman123
@crazytrashman123 2 года назад
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 года назад
I tried to include the relevant links, I don't think there are too many. This is the Dependency Injection video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-E3x07blYvdE.html
@crazytrashman123
@crazytrashman123 2 года назад
@@SwiftfulThinking Thanks!
@markaurelius61
@markaurelius61 2 года назад
Good gentle explanation. But I think you should have run it wit the try! in place. :D
@SwiftfulThinking
@SwiftfulThinking 2 года назад
I will Try! next time 😂
@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 Год назад
Rocking a new mac in this course? Perhaps an M1 mac... can't hear any fans freaking out 😀
@SwiftfulThinking
@SwiftfulThinking Год назад
New microphone 😁
@stefanlindholm3284
@stefanlindholm3284 Год назад
@@SwiftfulThinking Awesome!
Далее
Куда Анджилиша снова летит???
00:16
HOW DID SHE WIN??
00:49
Просмотров 14 млн
КТО ЭТО БЫЛ?
25:31
Просмотров 1 млн
Pydantic is OP, here's why
18:10
Просмотров 13 тыс.
How to use Generics in Swift | Advanced Learning #8
19:24
Swift - Class vs. Struct Explained
7:28
Просмотров 30 тыс.
Python 3.12 Generics in a Nutshell
6:22
Просмотров 47 тыс.
Куда Анджилиша снова летит???
00:16