Skip to content

Glossary: Swift Basics

switch

Compares one value against a list of cases and runs the first match. It must be exhaustive and never falls through to the next case.

Where the book teaches it

Related terms

caseexhaustiveenum