Skip to content

Glossary: Swift Basics

enum

Also written: enumeration, enums

A type with a fixed list of possible values, called cases, such as small, medium or large. A `switch` over one needs no `default` if it covers every case.

Where the book teaches it

Related terms

caseraw valueassociated valueexhaustive