Swift: AssociatedType Introduction (2021, Xcode 12, Swift 5) – iOS Development for Beginners

preview_player
Показать описание
In this video we will learn about associatedTypes in the swift programming language. A really great way to write generic code that is flexible for your needs – we'll do some examples to grasp the underlying concepts.

#swift #associatedType #tutorial

** Popular Series

** Get Skillshare free for 2 Months and learn iOS

** Manage all your investments from app earnings on Betterment!

** Grow your own Youtube tech channel with TubeBuddy:
Рекомендации по теме
Комментарии
Автор

It's much appreciated all the help you're offering, Thank you!

ahmedibrahim
Автор

Really easy to understand Associated Types 👌🏻

janarthanank
Автор

Responding, yes, you could do a few more videos to hang off this one. In particular, is the typealias required in your class? In particular, can your class specify a generic for the associated type? Would be nice to see either way whether works or does not work.

KK-pqlu
Автор

When you are doing a video where you explaining us basic swift stuff, can you give us a short example of where we can use this in a real scenario? This could be very helpfull

TheSpiralnotizblock
Автор

Awesome video! When would you use this over regular generics?

ryankanno
Автор

Thanks for the video, is a typealias required, or is that more of a coding style preference

byaruhaf
Автор

As a newcommer to Swift and iOS development i wanna thank you for all the content) i really enjoy watching your videos. I would just like an in-depth explanation of how to build views programmatically, if you have such videos i'd love if you could tell me exactly how to find them in your channel

Greetings!

hoy
Автор

Great power of associated type will be if you implement append method in protocol extension. Thanks for video. Your videos is good.

evgenykravtsov
Автор

This is something that I didn't bother to look up because it looked confusing at first glance but turned out, it's quite easy and straight-forward 😅

isurujn
Автор

This is what Apple uses for UIViewRepresentable

cinquain
Автор

Can't we use Type Parameters on Protocols?

henudetb
Автор

Sir Please launch Unit Testing And UI Testing Series. thankyou

Chandan-xzcd
Автор

Associated type is a wider topic. You did not mention we cannot declare a variable to be a type of Appendable, as soon as you introduce associated type in your protocol: you are in fact forced to rely on concrete types implementing the protocol with this approach. The most important thing a protocol achieves, is hiding the concrete type/implementation of an object: what about a video covering the “drawback” i just mentioned?

developerios
Автор

too fast and too many things happening at once. I can't really understand your example, try simplifying and slowing down

arturo