<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIActivityItemsConfigurationMetadataKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIActivityItemsConfigurationMetadataKey"
  },
  "title" : "UIActivityItemsConfigurationMetadataKey"
}
-->

# UIActivityItemsConfigurationMetadataKey

A structure that defines keys for the metadata associated with an activity items configuration.

```
struct UIActivityItemsConfigurationMetadataKey
```

## Topics

### Constants

[`static let title: UIActivityItemsConfigurationMetadataKey`](/documentation/UIKit/UIActivityItemsConfigurationMetadataKey/title)

A key for the title.

[`static let messageBody: UIActivityItemsConfigurationMetadataKey`](/documentation/UIKit/UIActivityItemsConfigurationMetadataKey/messageBody)

A key for the message body.

[`static let linkPresentationMetadata: UIActivityItemsConfigurationMetadataKey`](/documentation/UIKit/UIActivityItemsConfigurationMetadataKey/linkPresentationMetadata)

[`static let shareRecipients: UIActivityItemsConfigurationMetadataKey`](/documentation/UIKit/UIActivityItemsConfigurationMetadataKey/shareRecipients)

[`static let collaborationModeRestrictions: UIActivityItemsConfigurationMetadataKey`](/documentation/UIKit/UIActivityItemsConfigurationMetadataKey/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

### Initializers

[`init(String)`](/documentation/UIKit/UIActivityItemsConfigurationMetadataKey/init(_:))

Creates an activity items configuration metadata key.

[`init(rawValue: String)`](/documentation/UIKit/UIActivityItemsConfigurationMetadataKey/init(rawValue:))

Creates an activity items configuration metadata key with the specified raw value.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)