Tagged: Enum
There are 11 items tagged #Enum.
And there a lots of other tags to explore.
There are 11 items tagged #Enum.
And there a lots of other tags to explore.
There will be a time when you want to get an array of all enum cases, such as when you want to present them in a list or picker. CaseIterable protocol is what you are looking for.
An Enum is one of the data structures that best represents options for the Picker view. Let's learn what we need to do to make an enum usable in a Picker.
Learn how to make Swift Enum become Identifiable.
Let's learn how to read/write enum with associated value to UserDefaults.
Enumeration is a type that I think is perfect for representing options for users, but we can't save it directly to UserDefaults. Let's learn how to read/write enum to UserDefaults.
Learn what we can customize when relying on automatic synthesizing Codable for enums with associated values.
Swift 5.5 extends the support for the automatic synthesis to enums with associated values. Learn what can be expected from the synthesis code.
An easy question that you might overlook. Learn this simple fact together in this article.
Three language features around Swift enumeration that you might not aware of.
See all tags.