Skip to content

Glossary: Swift Basics

default (switch)

Also written: default case

The `switch` case that catches every value no other case matches. It is needed unless the cases are already exhaustive, as with an enum.

Where the book teaches it

Related terms

switchexhaustive