userIdentityDiscoveredBlock
The closure to execute for each user identity.
Declaration
var userIdentityDiscoveredBlock: ((CKUserIdentity, CKUserIdentity.LookupInfo) -> Void)? { get set }Discussion
The closure doesn’t return a value and takes the following parameters:
The user identity.
The lookup info that corresponds to the user identity.
The operation executes this closure one or more times for each user identity it discovers. 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 add the operation to a queue.