CartoonSmart Tutorials

Swift Tutorial on Enum Types (Episode 20)

CartoonSmart Tutorials

About this episode

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.

More from CartoonSmart Tutorials

SceneKit and ARKik – Basics Tutorial – Part 1 In this first video tutorial using the ARKit and SceneKit template, we’ll remove the starting assets and build a simple box and ball scene. We will use Sw…