I'm trying to check the case of an enum that has associated values for each case like this:
enum status {
case awake(obj1)
case sleeping(obj2)
case walking(obj3)
case running(obj4)
}
I'm using if(status == deviceStatus.awake){
to check status case and am getting an error: Binary operator '==' cannot be applied to operands of type 'status' and '(obj1) -> status'