How to use Generics in Swift | Advanced Learning #8

  Переглядів 13,757

Swiftful Thinking

Swiftful Thinking

2 роки тому

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!
Next video:
Last video:

КОМЕНТАРІ: 46
@philippegden9826
@philippegden9826 2 роки тому
You put many self proclaimed Swift / SwiftUI bloggers/vloggers to shame! You deserve many more subs. I’m learning lots - thank you!
@SwiftfulThinking
@SwiftfulThinking 2 роки тому
🥲 haha I'm just glad you're liking the videos. The channel is slowly growing :) Thanks for the comment.
@bradkimbrell2707
@bradkimbrell2707 Рік тому
@@SwiftfulThinking Could not agree more! I am posting on Twitter periodically to let others know. Content is top quality!
@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!
@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
@olhal5617
@olhal5617 2 роки тому
Thank you! As always - perfect explanation!
@owenpeters8322
@owenpeters8322 2 роки тому
Such good content! Really helping me gain production worthy knowledge! Thank you a ton!
@ojtok79
@ojtok79 2 роки тому
Really fantastic start to explaining generics! Love it! Thank you.
@SwiftfulThinking
@SwiftfulThinking 2 роки тому
Olcay! Thank you :)
@andrejkling3886
@andrejkling3886 2 роки тому
Thank you Nick...
@josemanuelortizsanchez4983
@josemanuelortizsanchez4983 Рік тому
This is the best advanced SwiftUI list I've ever seen. Thanks!
@SwiftfulThinking
@SwiftfulThinking Рік тому
Thanks Jose!
@zhanybeksalgarin8918
@zhanybeksalgarin8918 Рік тому
Great job with explanation brother, thank you!
@iziman99
@iziman99 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!
@pasha7324
@pasha7324 3 місяці тому
As always, Nick, very valuable :)
@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.
@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!
@magedmohmed4403
@magedmohmed4403 6 місяців тому
Thanks a lot nick , you are perfect in explanation
@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!!
@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 UKposts soon 😅
@shadowseekerme
@shadowseekerme 2 роки тому
Indeed how beautifully Nicks makes our head Swiftly interpret all that that's interesting, I clap for him also with Generics :)
@hemakirthijayasinghe3039
@hemakirthijayasinghe3039 Рік тому
really helpful!! Thanks you so much
@krakatoor
@krakatoor 2 роки тому
Super, as usual!
@SwiftfulThinking
@SwiftfulThinking 2 роки тому
Thank you Камиль!
@ostanjaffcompany173
@ostanjaffcompany173 2 роки тому
Thanks a lot for this great tutorial.
@SwiftfulThinking
@SwiftfulThinking 2 роки тому
You're welcome !!
@tasawarsaraf2573
@tasawarsaraf2573 2 роки тому
Neat tutorial !
@SwiftfulThinking
@SwiftfulThinking 2 роки тому
Thanks for watching Tasawar!
@eronas8794
@eronas8794 2 роки тому
you are awesome
@cinquain0
@cinquain0 2 роки тому
Good job Nick
@SwiftfulThinking
@SwiftfulThinking 2 роки тому
Thanks again James
@tarunreddy3599
@tarunreddy3599 2 роки тому
let nick: Goat
@SwiftDeveloperWorld
@SwiftDeveloperWorld 9 місяців тому
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
@neneqixia4773
@neneqixia4773 2 роки тому
Thanks
@SwiftfulThinking
@SwiftfulThinking 2 роки тому
🥳🥳
@TheseEyesSeeDarknessClearly7
@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.
@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 😂
@emdutt4012
@emdutt4012 Рік тому
AnyType instead of T..
@hashcat5721
@hashcat5721 Рік тому
10: 16 It is better to say that it violates one of the SOLID principles.
@abdulr6511
@abdulr6511 2 роки тому
Thanks
@SwiftfulThinking
@SwiftfulThinking 2 роки тому
Thank you Abdul!
How to use @ViewBuilder in SwiftUI | Advanced Learning #9
24:01
Swiftful Thinking
Переглядів 23 тис.
Glow Stick Secret 😱 #shorts
00:37
Mr DegrEE
Переглядів 43 млн
Эта Мама Испортила Гендер-Пати 😂
00:40
Глеб Рандалайнен
Переглядів 2,3 млн
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Переглядів 157 тис.
How to use escaping closures in Swift | Continued Learning #20
21:56
Swiftful Thinking
Переглядів 18 тис.
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Переглядів 22 тис.
How to use Timer and onReceive in SwiftUI | Continued Learning #24
26:17
Swiftful Thinking
Переглядів 20 тис.
Generics in Swift: Protocols with associated types
15:37
Swift and Tips
Переглядів 9 тис.
You might not need useEffect() ...
21:45
Academind
Переглядів 128 тис.
What is Object Oriented Programming for Swift | Swift Basics #8
40:00
Swiftful Thinking
Переглядів 11 тис.