Can someone tell me what I'm doing wrong here? "error" is NSError returned from CloudKit.
if error.code == Int(CKErrorCode.NetworkFailure) {
//do something
}
Gives me this error:
Binary operator '==' cannot be applied to two Int operands
If I do this, it works fine:
if error.code == 4 {
//do something
}
Where 4 is the actual error code.