---
title: systemSharingUIDidSaveShareBlock
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/cksystemsharinguiobserver/systemsharinguididsaveshareblock-8c9vi
---

# systemSharingUIDidSaveShareBlock

A callback block the system invokes after the success or failure of a share save by the system sharing UI.

## Declaration

```swift
@preconcurrency var systemSharingUIDidSaveShareBlock: (@Sendable (CKRecord.ID, Result<CKShare, any Error>) -> Void)? { get set }
```

## Discussion

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.

## See Also

### Accessing sharing blocks

- [systemSharingUIDidStopSharingBlock](cloudkit/cksystemsharinguiobserver/systemsharinguididstopsharingblock-7nmiw.md)
