<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICloudSharingControllerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICloudSharingControllerDelegate"
  },
  "title" : "UICloudSharingControllerDelegate"
}
-->

# UICloudSharingControllerDelegate

The protocol you implement to provide additional information to, and receive notifications from, the CloudKit sharing controller.

```
@MainActor protocol UICloudSharingControllerDelegate : NSObjectProtocol
```

## Overview

Implement an object that conforms to the [`UICloudSharingControllerDelegate`](/documentation/UIKit/UICloudSharingControllerDelegate) protocol when you want to:

- Configure a [`UICloudSharingController`](/documentation/UIKit/UICloudSharingController) instance.
- Receive notifications from a [`UICloudSharingController`](/documentation/UIKit/UICloudSharingController) instance as it attempts to save or remove the <doc://com.apple.documentation/documentation/CloudKit/CKShare> record based on user interactions on the Invitation and People screens.

## Topics

### Configuring the view controller

[`-  itemTitleForCloudSharingController:`](/documentation/UIKit/UICloudSharingControllerDelegate/itemTitle(for:))

Asks the delegate for the title to display on the invitation screen.

[`-  itemTypeForCloudSharingController:`](/documentation/UIKit/UICloudSharingControllerDelegate/itemType(for:))

Asks the delegate for the Uniform Type Identifier (UTI) of the item.

[`-  itemThumbnailDataForCloudSharingController:`](/documentation/UIKit/UICloudSharingControllerDelegate/itemThumbnailData(for:))

Asks the delegate for the thumbnail image data to display on the invitation.

### Processing shared items

[`-  cloudSharingController:failedToSaveShareWithError:`](/documentation/UIKit/UICloudSharingControllerDelegate/cloudSharingController(_:failedToSaveShareWithError:))

Tells the delegate that the CloudKit sharing controller failed to save the share record.

[`-  cloudSharingControllerDidStopSharing:`](/documentation/UIKit/UICloudSharingControllerDelegate/cloudSharingControllerDidStopSharing(_:))

Tells the delegate that the user has stopped sharing the record.

[`-  cloudSharingControllerDidSaveShare:`](/documentation/UIKit/UICloudSharingControllerDelegate/cloudSharingControllerDidSaveShare(_:))

Tells the delegate that the CloudKit sharing controller saved the share record.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)