Instance Property


The block to execute when the save results of a single record are known.


var perRecordCompletionBlock: ((CKRecord, Error?) -> Void)? { get set }


The block returns no value and takes the following parameters:


A CKRecord object that you attempted to save.


An error object containing information about a problem, or nil if the record was saved successfully.

This block is executed once for each record in the recordsToSave property. Each time the block is executed, it is executed serially with respect to the other progress blocks of the operation.

If you intend to use this block to process results, set it before executing the operation or submitting the operation object to a queue. Use this block to take any actions after the status of saving the record is known.

See Also

Processing the Operation Results

var perRecordProgressBlock: ((CKRecord, Double) -> Void)?

The block to execute with progress information for an individual record.

var modifyRecordsCompletionBlock: (([CKRecord]?, [CKRecord.ID]?, Error?) -> Void)?

The block to execute after the status of all changes is known.