Answers for "best way of using enum example ios swift"

1

enum raw value swift

enum numbers: Int {
 case one = 1, two, three, four
}

let num = numbers.one
print(num.rawValue) // Output: 1
Posted by: Guest on December-31-2020

Code answers related to "best way of using enum example ios swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language