perShareCompletionBlock
The block to execute as CloudKit processes individual shares.
Declaration
var perShareCompletionBlock: ((CKShare.Metadata, CKShare?, (any Error)?) -> Void)? { get set }Discussion
The closure returns no value and takes the following parameters:
The share metadata to process.
The share, or
nilif CloudKit can’t process the share metadata.If CloudKit can’t process the share metadata, this parameter provides information about the failure; otherwise, it’s
nil.
The operation executes this closure once for each element in the shareMetadatas property. Each time the closure executes, it executes serially with respect to the other closures of the operation.
If you intend to use this closure to process results, set it before you execute the operation or submit the operation to a queue.