<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SharedWithYou",
  "identifier" : "/documentation/SharedWithYouCore/SWCollaborationMetadata",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Shared with You Core"
    ],
    "preciseIdentifier" : "c:objc(cs)SWCollaborationMetadata"
  },
  "title" : "SWCollaborationMetadata"
}
-->

# SWCollaborationMetadata

A model object for conveying data during a collaboration.

```
class SWCollaborationMetadata
```

## Overview

Use `SWCollaborationMetadata` to share content without using iCloud. The system wraps the metadata object in an <doc://com.apple.documentation/documentation/Foundation/NSItemProvider> object to implement a custom collaboration infrastructure.

If your app uses SwiftUI, `SWCollaborationMetadata` is compatible with the <doc://com.apple.documentation/documentation/CoreTransferable/Transferable> protocol and the <doc://com.apple.documentation/documentation/SwiftUI/ShareLink> view.

## Topics

### Creating collaboration metadata

[`-  initWithLocalIdentifier:`](/documentation/SharedWithYouCore/SWCollaborationMetadata/init(localIdentifier:))

Creates and initializes a collaboration metadata object for the specified local identifier.

[`-  initWithCollaborationIdentifier:`](/documentation/SharedWithYouCore/SWCollaborationMetadata/init(collaborationIdentifier:))

Creates and initializes a collaboration metadata object for the specified global identifier.

### Accessing metadata attributes

[`collaborationIdentifier`](/documentation/SharedWithYouCore/SWCollaborationMetadata/collaborationIdentifier)

A globally unique identifier that the app hosting the collaboration provides.

[`defaultShareOptions`](/documentation/SharedWithYouCore/SWCollaborationMetadata/defaultShareOptions)

The collaboration options that the content supports.

[`initiatorHandle`](/documentation/SharedWithYouCore/SWCollaborationMetadata/initiatorHandle)

The handle of the person who initiates the collaboration.

[`initiatorNameComponents`](/documentation/SharedWithYouCore/SWCollaborationMetadata/initiatorNameComponents)

The name of the person who initiates the collaboration.

[`localIdentifier`](/documentation/SharedWithYouCore/SWCollaborationMetadata/localIdentifier)

A locally unique identifier for the item the metadata represents.

[`title`](/documentation/SharedWithYouCore/SWCollaborationMetadata/title)

The title of the content.

[`userSelectedShareOptions`](/documentation/SharedWithYouCore/SWCollaborationMetadata/userSelectedShareOptions)

The selected collaboration options from the person who sends the invitation.

### Implementing a transfer representation

## Relationships

### Conforms To

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Transferable`](/documentation/CoreTransferable/Transferable)

[`NSItemProviderWriting`](/documentation/Foundation/NSItemProviderWriting)

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

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

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSMutableCopying`](/documentation/Foundation/NSMutableCopying)

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

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

[`NSItemProviderReading`](/documentation/Foundation/NSItemProviderReading)

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

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)