How to iterate over all enum values with String type in Swift?
Hello everyone! I'm new to Swift and encountered a problem while working with enums.
I have an enum that contains weekday names with string values:
```swift
enum WeekDay: String {
case monday = "Понедельник"
case tuesday = "Вторник"
case wednesday = "Среда"
case thursday = "Четверг"
case friday = "Пятница"
case saturday = "Суббота"
case sunday = "Воскресенье"
}
```
I need to output all weekdays to the console or display them in a TableView. But I can't figure out how to get an array of all cases of this enum.
I tried using `WeekDay.allCases`, but Xcode says that `WeekDay` does not conform to the `CaseIterable` protocol. When I try to add `CaseIterable`, the compiler complains.
I also saw examples online with sta