Тёмный

How to use Generics in Swift | Advanced Learning #8 

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

This video will introduce you to Generics in Swift. Generics are an extremely powerful part of the Swift language. They allow us to abstract parts of our code, which will help make our code more reusable and efficient. In this video, we'll learn how to use Generics, why we use them, and then review a few simple examples. We will then use Generics in the next few videos in this series to create custom SwiftUI components!
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-t...
DISCORD: / discord
GITHUB: github.com/Swi...
SAY THANKS: www.buymeacoff...

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

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 46   
@andrejkling3886
@andrejkling3886 3 года назад
Thank you Nick...
@seekermel3079
@seekermel3079 Год назад
Really useful video, Nick. I especially like how you started with "CustomType", then moved to the "T" we frequently see in documentation and other code examples. Mystery solved.
@franklemur5518
@franklemur5518 Год назад
Nick, I find ALL your courses so incredibly useful. I only started Swift in early August and have progressed a lot because of you. I am developing (for my own use - not for public use) an iPhone app of the results of each of your lessons basic thru advanced into an app. This has made me fall down many holes and I am better for it. Keep producing the videos if you have time. Many thanks.
@SwiftfulThinking
@SwiftfulThinking Год назад
Thanks for the feedback Frank! I’m glad you enjoyed the playlists... I’ll be returning to RU-vid soon 😅
@pasha7324
@pasha7324 8 месяцев назад
As always, Nick, very valuable :)
@ojtok79
@ojtok79 3 года назад
Really fantastic start to explaining generics! Love it! Thank you.
@SwiftfulThinking
@SwiftfulThinking 3 года назад
Olcay! Thank you :)
@magedmohmed4403
@magedmohmed4403 11 месяцев назад
Thanks a lot nick , you are perfect in explanation
@philippegden9826
@philippegden9826 3 года назад
You put many self proclaimed Swift / SwiftUI bloggers/vloggers to shame! You deserve many more subs. I’m learning lots - thank you!
@SwiftfulThinking
@SwiftfulThinking 3 года назад
🥲 haha I'm just glad you're liking the videos. The channel is slowly growing :) Thanks for the comment.
@bradkimbrell2707
@bradkimbrell2707 2 года назад
@@SwiftfulThinking Could not agree more! I am posting on Twitter periodically to let others know. Content is top quality!
@olhal5617
@olhal5617 3 года назад
Thank you! As always - perfect explanation!
@krakatoor
@krakatoor 3 года назад
Super, as usual!
@SwiftfulThinking
@SwiftfulThinking 3 года назад
Thank you Камиль!
@SwiftDeveloperWorld
@SwiftDeveloperWorld Год назад
how we can understand the type of generic? for example if it is bool use this method or if it is int use the other one
@emdutt4012
@emdutt4012 Год назад
AnyType instead of T..
@hashcat5721
@hashcat5721 2 года назад
10: 16 It is better to say that it violates one of the SOLID principles.
@TheseEyesSeeDarknessClearly7
Is there a difference in creating the Generic View as struct GenericView : View and struct GenericView: View where T: View I used the second method and it appears to work the same. Just wondering if there might be some big difference I should know about.
@kjlee7826
@kjlee7826 2 года назад
Best generics explanation among what I have watched! You are so clear about what you are teaching! Thank you again.
@SwiftfulThinking
@SwiftfulThinking 2 года назад
Thanks KJ happy to hear this
@neneqixia4773
@neneqixia4773 2 года назад
Thanks
@SwiftfulThinking
@SwiftfulThinking 2 года назад
🥳🥳
@brucknerdevilliers
@brucknerdevilliers 2 года назад
Great, but some confusion between my three brain cells. I'll have to review again.
@SwiftfulThinking
@SwiftfulThinking 2 года назад
Yea this is tough stuff 😂
@tarunreddy3599
@tarunreddy3599 2 года назад
let nick: Goat
@eronas8794
@eronas8794 2 года назад
you are awesome
@kdtechniquesofficial6153
@kdtechniquesofficial6153 Год назад
This is why I call you my SwiftUI Angle. Once I was going through a SwiftUI tutorial by apple that had something to do with a model called "LandmarksModel," and there I saw this . I didn't even understand that by then. But now I do, thanks to you.
@SwiftfulThinking
@SwiftfulThinking Год назад
KD is back!!
@midnightcoder
@midnightcoder 2 года назад
I can’t wait to see what is is in the pipes. This is one of the best Swift channels out there. No useless talk, lots of info! Great!
@shadowseekerme
@shadowseekerme 2 года назад
Indeed how beautifully Nicks makes our head Swiftly interpret all that that's interesting, I clap for him also with Generics :)
@maciusessa
@maciusessa 2 года назад
Very, very interesting video! I am looking forward to use those Generics in future projects. Nobody could explain generics to me in such a understandable way. Greetings from Poland!
@tas_araf
@tas_araf 3 года назад
Neat tutorial !
@SwiftfulThinking
@SwiftfulThinking 3 года назад
Thanks for watching Tasawar!
@zhanybeksalgarin8918
@zhanybeksalgarin8918 2 года назад
Great job with explanation brother, thank you!
@owenpeters8322
@owenpeters8322 2 года назад
Such good content! Really helping me gain production worthy knowledge! Thank you a ton!
@hemakirthijayasinghe3039
@hemakirthijayasinghe3039 2 года назад
really helpful!! Thanks you so much
@cinquain0
@cinquain0 3 года назад
Good job Nick
@SwiftfulThinking
@SwiftfulThinking 3 года назад
Thanks again James
@mhmtkrnlk
@mhmtkrnlk 2 года назад
This is perfecto! Best Swift/SwiftUI Course ever i saw and i saw and payed many.
@SwiftfulThinking
@SwiftfulThinking 2 года назад
Haha thanks Mehmet!
@josemanuelortizsanchez4983
@josemanuelortizsanchez4983 Год назад
This is the best advanced SwiftUI list I've ever seen. Thanks!
@SwiftfulThinking
@SwiftfulThinking Год назад
Thanks Jose!
@ostanjaffcompany173
@ostanjaffcompany173 2 года назад
Thanks a lot for this great tutorial.
@SwiftfulThinking
@SwiftfulThinking 2 года назад
You're welcome !!
@abdulr6511
@abdulr6511 3 года назад
Thanks
@SwiftfulThinking
@SwiftfulThinking 3 года назад
Thank you Abdul!
Далее
"Когти льва" Анатолий МАЛЕЦ
53:01
How to use Protocols in Swift | Advanced Learning #15
28:37
How to use KeyPaths in Swift | Advanced Learning #29
25:12
Introduction to Generics in Swift
24:14
Просмотров 6 тыс.
Generics in Swift: Protocols with associated types
15:37
"Когти льва" Анатолий МАЛЕЦ
53:01