Skip to content

Glossary: Swift Beyond the Basics

associated type

Also written: associatedtype, associated types

A placeholder type inside a protocol that each conforming type chooses. In `Store`, `Item` is `String` for `BeanStore` and `Mug` for a mug store.

Where the book teaches it

Related terms

generic functionsome vs anyopaque type