Reputation: 35042
I guess it is basic, but still .. how can I check whether I get a ZoneBusy
error?
if error.code == CKErrorCode.ZoneBusy { // <- compiler says can't use '==', then what?
Reference:
Upvotes: 3
Views: 582
Reputation: 16292
It appears that you are missing .rawValue
.
So it should be:
CKErrorCode.ZoneBusy.rawValue
Upvotes: 6