How to use enum in Swift
2 min readMar 7, 2023
Enumerations defines a type for group of related values.
Enumerations (enum) enables you to write code in a type safe way. Enum is very useful while defining common type of values. You don’t have to provide value while defining enum.
Syntax
You can declare enumerations with enum keyword.
enum SomeEnumerations {
}