Posts

Post not yet marked as solved
1 Replies
1.5k Views
I'm uploading assets to a private cloud database, but I'd like to check the account's storage availability before having the user upload. Any way to programmatically check the remaining capacity of a user's iCloud account?
Posted
by gmcerveny.
Last updated
.
Post not yet marked as solved
1 Replies
492 Views
I'm tracking down a CloudKit error of 'Failed to modify some records.'How can I throw this error so that I can test my error handling code?Is there a property of CKRecord I can set to force it to fail?Code is currently something like:var someRecords = [CKRecord]() for i in (1...10) { let record = CKRecord(recordType: "Track", recordID: CKRecord.ID(zoneID: recordZone.zoneID)) ... someRecords.append(record) } let operation = CKModifyRecordsOperation(recordsToSave: someRecords, recordIDsToDelete: nil) operation.modifyRecordsCompletionBlock = { savedRecords, deletedRecords, error in DispatchQueue.main.async { if !self.handleError(error) { ... } } }
Posted
by gmcerveny.
Last updated
.