Hi, just a simple question; I'm wondering if it's possible to use a space in a case name because I am using Speech framework. This is my code:
enum Color: String {
case Red, Orange, Yellow
var create: UIColor {
switch self {
case .Red:
return UIColor.red
case .Orange:
return UIColor.orange
case .Yellow:
return UIColor.yellow
}
}
}
If I want someone to have to say "Red Rectangle," instead of just "Red," is this possible? If so, how would I write it in the code?
Thanks in advance.