My predicate wants to exclude some records that are already downloaded and available in a [CKRecordID]. Now I can query 1 CKRecordID[0], but not the [CKRecordID] array. How can
Using [CKReference] and not [CKRecordID] solved it.
To be explicit (because it took me hours to get this right)...
let refs = excludeIDs.map { CKRecord.Reference(recordID: $0.recordID, action: .none) } let pred1 = NSPredicate(format: "NOT(recordID IN %@)", refs)