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

# SWCollaborationShareOptions

An object that represents the state of the collaboration options for the document.

```
class SWCollaborationShareOptions
```

## Topics

### Creating share options

[`-  initWithCoder:`](/documentation/SharedWithYouCore/SWCollaborationShareOptions/init(coder:))

Creates and initializes a collaboration share options object.

[`-  initWithOptionsGroups:`](/documentation/SharedWithYouCore/SWCollaborationShareOptions/init(optionsGroups:))

Creates and initializes a collaboration share options object with the array of groups.

[`-  initWithOptionsGroups:summary:`](/documentation/SharedWithYouCore/SWCollaborationShareOptions/init(optionsGroups:summary:))

Creates and initializes a collaboration share options object the array of groups and a summary string.

[`+  shareOptionsWithOptionsGroups:`](/documentation/SharedWithYouCore/SWCollaborationShareOptions/shareOptionsWithOptionsGroups:)

Creates and initializes a collaboration share options object with the array of groups.

[`+  shareOptionsWithOptionsGroups:summary:`](/documentation/SharedWithYouCore/SWCollaborationShareOptions/shareOptionsWithOptionsGroups:summary:)

Creates and initializes a collaboration share options object the array of groups and a summary string.

### Accessing options attributes

[`optionsGroups`](/documentation/SharedWithYouCore/SWCollaborationShareOptions/optionsGroups)

An array of options group objects to customize how the system shares the collaboration.

[`summary`](/documentation/SharedWithYouCore/SWCollaborationShareOptions/summary)

A localized string to summarize the collaboration options.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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