Skip to content

Glossary: Swift Basics

raw value

Also written: rawValue, raw values

A fixed value linked to each enum case, like `"m"` for `Size.medium`. `Size(rawValue:)` goes back and gives an optional.

Where the book teaches it

Related terms

enumCaseIterableoptional