Enums define a group of related values in a type-safe way. They are particularly useful for defining states, options, or categories that a variable can have. Raw Values Enums can have raw values associated with each case. The raw value must be of the same type and unique. Associated Values …