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

# sharingService(_:didStopSharing:)

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

## Declaration

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

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.

## See Also

### Managing the Cloud-Sharing Service

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