perRecordProgressBlock
The closure to execute with progress information for individual records.
Declaration
var perRecordProgressBlock: ((CKRecord, Double) -> Void)? { get set }Discussion
This property is a closure that returns no value and has the following parameters:
The record that CloudKit saves.
The amount of data, as a percentage, that CloudKit saves for the record. The range is
0.0to1.0, where0.0indicates that CloudKit hasn’t saved any data, and1.0means that CloudKit has saved the entire record.
The modify records operation executes this closure one or more times for each record in the recordsToSave property. Each time the closure executes, it executes serially with respect to the other progress closures of the operation. You can use this closure to track the ongoing progress of the operation.
If you intend to use this closure to process results, set it before you execute the operation or add the operation to a queue.