Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

enums With Raw Values Swift

enum Size : Int {
  case small = 10
  case medium = 12
  case large = 14
}

// access raw value of python case
var result = Size.small.rawValue
print(result)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #enums #With #Raw #Values #Swift
ADD COMMENT
Topic
Name
7+2 =