3 lesser-known ways of using Swift enums

An enumeration defines a common type for a group of related values. Enumerations in Swift are first-class types, and they adopt many features traditionally only available by class types. In this post, Sarun Wongpatcharapakorn introduces us to some enum use cases in Swift that we might not be aware of.