Swift Tutorial on Enum Types (Episode 20)

Published: May 14, 2016, 2:43 a.m.

In this lesson we'll look at enum type variables with Swift. These are constant variables which could be used for getting back a raw value, but in most cases, enums are simply used as identifiers, like Rank.Ace or just .Ace . Where the value isn't important, but testing whether or not a particular thing is an Ace type is important. Yes, yes, it can seem a little strange at first, but watch this iOS (or tvOS) video tutorial for Swift and you'll see how useful these can be.