Skip to content

Glossary: Swift Basics

CaseIterable

Also written: allCases

A standard protocol that makes Swift build `allCases`, an array of every case of an enum. `Size.allCases` lists small, medium and large.

Where the book teaches it

Related terms

enumprotocolraw value