Вы можете использовать CustomStringConvertible
enum EnumDays: Int, CustomStringConvertible
{
var description: String {
switch self {
case .MONDAY:
return "Monday"
case .TUESDAY:
return "Tuesday"
case .WEDNESDAY:
return "Wednesday"
case .THURSDAY:
return "Thursday"
case .FRIDAY:
return "Friday"
case .SATURDAY:
return "Saturday"
case .SUNDAY:
return "Sunday"
}
}
case MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY,SUNDAY
}
И использовать, если позволяют развернуть объект enum
if let weekDay = EnumDays.init(rawValue: 0) {
print("Day = \(weekDay)")
}
Вы можете получить неделюдней с Calendar.current.weekdaySymbols
print(Calendar.current.weekdaySymbols)//["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
print(Calendar.current.shortWeekdaySymbols)//["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]