systemSharingUIDidSaveShareBlock
A callback block the system invokes after the success or failure of a share save by the system sharing UI.
Declaration
@preconcurrency var systemSharingUIDidSaveShareBlock: (@Sendable (CKRecord.ID, Result<CKShare, any Error>) -> Void)? { get set }Discussion
Following a successful share save by the system sharing UI in the provided CKContainer, the system invokes this callback with a nonnull CKRecord.ID, a nonnull share, and a nil error.
If a save failure occurs due to a per-item error like CKError.Code.serverRecordChanged, the system invokes this callback with a nonnull CKRecord.ID, a nil share, and a nonnull error.
Each CKSystemSharingUIObserver instance has a private serial queue. The system uses this queue for all callback block invocations.