---
title: "sharingService(_:didSave:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscloudsharingservicedelegate/sharingservice(_:didsave:)"
---

# sharingService(_:didSave:)

Tells the delegate when the cloud-sharing service saves the CloudKit share.

## Declaration

```swift
optional func sharingService(_ sharingService: NSSharingService, didSave share: CKShare)
```

## Parameters

- `sharingService`: The cloud-sharing service that invokes this delegate method.
- `share`: The saved CloudKit share.

## Discussion

Discussion The cloud-sharing service invokes this method when it saves changes to the share. The share parameter is the most recent state of the share on the server.

## See Also

### Managing the Cloud-Sharing Service

- [sharingService(_:didCompleteForItems:error:)](appkit/nscloudsharingservicedelegate/sharingservice(_:didcompleteforitems:error:).md)
- [sharingService(_:didStopSharing:)](appkit/nscloudsharingservicedelegate/sharingservice(_:didstopsharing:).md)
- [options(for:share:)](appkit/nscloudsharingservicedelegate/options(for:share:).md)
- [NSSharingService.CloudKitOptions](appkit/nssharingservice/cloudkitoptions.md)
