---
title: "sharingServices(forItems:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nssharingservice/sharingservices(foritems:)"
---

# sharingServices(forItems:)

Returns a list of sharing services which could share all the provided items together.

## Declaration

```swift
class func sharingServices(forItems items: [Any]) -> [NSSharingService]
```

## Parameters

- `items`: The items to share.

## Return Value

Return Value An array of sharing services to allow for items.

## Discussion

Discussion This method can be used to build a custom user interface or to populate a contextual menu.

## See Also

### Related Documentation

- [init(named:)](appkit/nssharingservice/init(named:).md)

### Querying Service Availability

- [canPerform(withItems:)](appkit/nssharingservice/canperform(withitems:).md)
