Answers for "swift search enum"

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 "Swift"

Browse Popular Code Answers by Language