<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKSystemSharingUIObserver",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKSystemSharingUIObserver"
  },
  "title" : "CKSystemSharingUIObserver"
}
-->

# CKSystemSharingUIObserver

An object the system uses to monitor changes in sharing.

```
class CKSystemSharingUIObserver
```

## Overview

Initialize a `CKSystemSharingUIObserver` instance with your [`CKContainer`](/documentation/CloudKit/CKContainer) when preparing to share an item using the share sheet. Use your implementation to update the local state of a shared item when your app receives a [`CKShare`](/documentation/CloudKit/CKShare), or to delete a locally cached share when the system notifies your app about a share deletion.

The system only propagates changes on the local device using `CKSystemSharingUIObserver`. The system doesn’t notify your app about any remote changes on the server. For more information about how to keep your local cache in sync with remote changes, see [Remote Records](/documentation/CloudKit/remote-records).

## Topics

### Creating a sharing observer

[`init(container:)`](/documentation/CloudKit/CKSystemSharingUIObserver/init(container:))

Creates and initializes an observer using the provided container.

### Configuring a sharing observer

### Accessing sharing blocks

[`systemSharingUIDidSaveShareBlock`](/documentation/CloudKit/CKSystemSharingUIObserver/systemSharingUIDidSaveShareBlock-8c9vi)

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

[`systemSharingUIDidStopSharingBlock`](/documentation/CloudKit/CKSystemSharingUIObserver/systemSharingUIDidStopSharingBlock-7nmiw)

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

[`systemSharingUIDidSaveShareBlock`](/documentation/CloudKit/CKSystemSharingUIObserver/systemSharingUIDidSaveShareBlock-39zlv)

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

[`systemSharingUIDidStopSharingBlock`](/documentation/CloudKit/CKSystemSharingUIObserver/systemSharingUIDidStopSharingBlock-4g5bn)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)