Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift enum With Associated Values

enum Distance {
  
  // associate value 
  case km(String)
  ...
}
 
PREVIOUS NEXT
Tagged: #Swift #enum #With #Associated #Values
ADD COMMENT
Topic
Name
5+6 =