Answers for "swiftui case"

0

caseiterable swift

enum Color: CaseIterable {
    case red, green, blue
}
// example:
for color in Color.allCases {
    print("My favorite color is (color).")
}
Posted by: Guest on May-20-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language