Swift Enumerations (Enums)
An enum is a user-defined data type that consists of a set of related values. Enums are often used to represent a group of related options, such as the days of the week or the suits in a deck of …
Swift is a powerful and intuitive programming language for macOS, iOS, watchOS, tvOS, and Linux. Swift makes it easy to write software that is incredibly fast and safe by design. Our comprehensive set of tools and APIs help you create amazing apps with Swift. Learn more about Swift with these in-depth guides!
An enum is a user-defined data type that consists of a set of related values. Enums are often used to represent a group of related options, such as the days of the week or the suits in a deck of …