AssociatedType in Swift – A Generic Adventure
![](https://holyswift.app/wp-content/uploads/2022/07/3z1j2ZKpM-1024x538.webp)
Hello ladies and gentlemen, Leo here. Today we’ll explore a great language feature called associatedtype in Swift. In general terms, associatedtype is used when you need to have generic behavior in your protocols. It’s important because as Apple says: Generic code enables you to write flexible, reusable functions and types that can work with any type, […]