Programming in Swift: Functions & Types, Episode 21: Enumerations | raywenderlich.com

Learn how to use enumerations to represent a specific set of related, discrete values like card suits or seasons.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/28433240-programming-in-swift-functions-types/lessons/21

is it just me or does .allCases not work on enumerations?

I get the error “Type ‘Season’ has no member ‘allCases’”

I forgot to make the enum CaseInterable, problem solved

1 Like