<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICloudSharingControllerDelegate/cloudSharingController(_:failedToSaveShareWithError:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICloudSharingControllerDelegate(im)cloudSharingController:failedToSaveShareWithError:"
  },
  "title" : "cloudSharingController(_:failedToSaveShareWithError:)"
}
-->

# cloudSharingController(_:failedToSaveShareWithError:)

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

```
func cloudSharingController(_ csc: UICloudSharingController, failedToSaveShareWithError error: any Error)
```

## Discussion

Implement this method to receive a notification from the [`UICloudSharingController`](/documentation/UIKit/UICloudSharingController) instance after it fails to save changes to the <doc://com.apple.documentation/documentation/CloudKit/CKShare> record.

---

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)