I'm trying to implement enum of array of strings like this
import UIKit
enum EstimateItemStatus: Int, [String] {
case Pending
case OnHold
case Done
var description: [String] {
switch self {
case .Pending:
return ["one", "Two"]
case .OnHold:
return ["one", "Two"]
case .Done:
return ["one", "Two"]
}
}
}
print(EstimateItemStatus.Pending.description)
But I'm getting this error:
error: processArray.playground:3:31: error: multiple enum raw types 'Int' and '[String]'
enum EstimateItemStatus: Int, [String] {
~~~ ^
Any of you knows how can fix this errors to make the enum work?
I'll really appreciate your help.