<!--
{
  "availability" : [
    "macOS: 10.8.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCloudSharingServiceDelegate/sharingService(_:didSave:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSCloudSharingServiceDelegate(im)sharingService:didSaveShare:"
  },
  "title" : "sharingService(_:didSave:)"
}
-->

# sharingService(_:didSave:)

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

```
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

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.

---

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)