<!--
{
  "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/SWCollaborationOption",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Shared with You Core"
    ],
    "preciseIdentifier" : "c:objc(cs)SWCollaborationOption"
  },
  "title" : "SWCollaborationOption"
}
-->

# SWCollaborationOption

An object that determines how the system shares a document in a collaboration.

```
class SWCollaborationOption
```

## Overview

The `SWCollaborationOption` represents a user-configurable setting for a collaboration that the system uses to share the document. The system displays these options on the Share Sheet or in Messages.

## Topics

### Creating collaboration options

[`-  initWithTitle:identifier:`](/documentation/SharedWithYouCore/SWCollaborationOption/initWithTitle:identifier:)

Creates and initializes a collaboration option object.

[`+  optionWithTitle:identifier:`](/documentation/SharedWithYouCore/SWCollaborationOption/init(title:identifier:))

Creates and initializes a collaboration option object with a provided title and identifier.

[`init(title:identifier:subtitle:selected:requiredOptionsIdentifiers:)`](/documentation/SharedWithYouCore/SWCollaborationOption/init(title:identifier:subtitle:selected:requiredOptionsIdentifiers:))

Creates and initializes a collaboration option object with the provided values.

### Accessing option attributes

[`identifier`](/documentation/SharedWithYouCore/SWCollaborationOption/identifier)

A unique identifier.

[`selected`](/documentation/SharedWithYouCore/SWCollaborationOption/isSelected)

A Boolean value that represents the selected state of an option.

[`requiredOptionsIdentifiers`](/documentation/SharedWithYouCore/SWCollaborationOption/requiredOptionsIdentifiers)

An array of option identifiers that the app must select before the system makes the option interactive.

[`subtitle`](/documentation/SharedWithYouCore/SWCollaborationOption/subtitle)

A localized string the system displays to represent the permissions option in the collaboration view.

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

A localized string the system displays as a title to represent the permissions option.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

### 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)