---
title: "sharingServicePicker(_:didChoose:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nssharingservicepickerdelegate/sharingservicepicker(_:didchoose:)"
---

# sharingServicePicker(_:didChoose:)

Tells the delegate that the person selected a sharing service for the current item.

## Declaration

```swift
optional func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, didChoose service: NSSharingService?)
```

## Parameters

- `sharingServicePicker`: The sharing service picker.
- `service`: The selected sharing service. Invoked to give the delegate to the sharing service that is about to be executed.

## Discussion

Discussion After someone chooses a service, the sharing service picker calls this method to let you know which service they picked. The sharing service receives the item sometime after this method returns.

## See Also

### Customizing Behavior

- [sharingServicePicker(_:delegateFor:)](appkit/nssharingservicepickerdelegate/sharingservicepicker(_:delegatefor:).md)
