I assume this is basic, but still ... How can I check if there is a bug ZoneBusy ?
ZoneBusy
if error.code == CKErrorCode.ZoneBusy { // <- compiler says can't use '==', then what?
Link:
https://developer.apple.com/library/prerelease/ios/documentation/CloudKit/Reference/CloudKit_constants/index.html#//apple_ref/c/tdef/CKErrorCode
It seems that you are missing .rawValue .
.rawValue
So it should be:
CKErrorCode.ZoneBusy.rawValue