<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIActivityItemsConfigurationMetadataKey/collaborationModeRestrictions",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UIActivityItemsConfigurationMetadataKeyCollaborationModeRestrictions"
  },
  "title" : "collaborationModeRestrictions"
}
-->

# collaborationModeRestrictions

A key for a collaboration mode restriction, used to specify the case where Share Sheet should not support some modes of sharing even if they are supported by the items being shared
The object returned for this key should be an array of UIActivityCollaborationModeRestriction instances
For supported behaviour, this array should have a maximum size of one less than the amount of possible Share Sheet modes
Currently at most one object should be provided

```
static let collaborationModeRestrictions: UIActivityItemsConfigurationMetadataKey
```

---

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)