---
title: "sharingServicePickerCollaborationModeRestrictions(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nssharingservicepickerdelegate/sharingservicepickercollaborationmoderestrictions(_:)"
---

# sharingServicePickerCollaborationModeRestrictions(_:)

Used to specify the case where the share picker should not support some modes of sharing even if they are supported by the items being shared. Disabling all possible modes at the same time is not supported behavior.

## Declaration

```swift
optional func sharingServicePickerCollaborationModeRestrictions(_ sharingServicePicker: NSSharingServicePicker) -> [NSSharingServicePicker.CollaborationModeRestriction]?
```
