I would like to create one enum that each case present its own value. so I can use something like Fruit.apple /// apple. However at some point, I have the impression that it is not suitable to use rawValue. what is the suggestion? should i create a property like Fruit.apple.string
or just use Fruit.apple.rawValue
?
enum Fruit: String {
case apple
case banana
var string: String {
rawValue
}
2