Skip to content

Glossary: Swift Basics

associated value

Also written: associated values

Extra data attached to an enum case, like the last four digits in `.card(last4: "4242")`. You read it with a `switch` and `let`.

Where the book teaches it

Related terms

enumraw valueswitch