---
title: "cloudSharingController(_:failedToSaveShareWithError:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicloudsharingcontrollerdelegate/cloudsharingcontroller(_:failedtosavesharewitherror:)"
---

# cloudSharingController(_:failedToSaveShareWithError:)

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

## Declaration

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

## Discussion

Discussion Implement this method to receive a notification from the UICloudSharingController instance after it fails to save changes to the CKShare record.

## See Also

### Processing shared items

- [cloudSharingControllerDidStopSharing(_:)](uikit/uicloudsharingcontrollerdelegate/cloudsharingcontrollerdidstopsharing(_:).md)
- [cloudSharingControllerDidSaveShare(_:)](uikit/uicloudsharingcontrollerdelegate/cloudsharingcontrollerdidsaveshare(_:).md)
