<!--
{
  "availability" : [
    "macOS: 10.8.0 - 13.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSharingService/sharingServices(forItems:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSharingService(cm)sharingServicesForItems:"
  },
  "title" : "sharingServices(forItems:)"
}
-->

# sharingServices(forItems:)

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

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

## Parameters

`items`

The items to share.

## Return Value

An array of sharing services to allow for `items`.

## Discussion

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

## See Also

[`init(named:)`](/documentation/AppKit/NSSharingService/init(named:))

Returns a sharing service instance representing the specified service name.



---

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)