swift enum int,string code example
Example: swift enum
enum Planet {
case mercury, venus, earth, mars, jupiter, saturn, uranus, neptune
}
enum Planet {
case mercury, venus, earth, mars, jupiter, saturn, uranus, neptune
}