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

# sharingService(_:didStopSharing:)

Tells the delegate when the user stops sharing the CloudKit share.

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

## Parameters

`sharingService`

The cloud-sharing service that invokes this delegate method.

`share`

The share the user is no longer sharing.

## Discussion

The cloud-sharing service invokes this method after it deletes the share on the server. The `share` parameter is the most recent state of the share before the service deletes it.

---

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)