---
title: "init(optionsGroups:summary:)"
framework: sharedwithyoucore
role: symbol
role_heading: Initializer
path: "sharedwithyoucore/swcollaborationshareoptions/init(optionsgroups:summary:)"
---

# init(optionsGroups:summary:)

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

## Declaration

```swift
init(optionsGroups: [SWCollaborationOptionsGroup], summary: String)
```

## Parameters

- `optionsGroups`: An array of doc://com.apple.sharedwithyou/documentation/SharedWithYouCore/SWCollaborationOptionsGroup objects to customize how the system shares the collaboration.
- `summary`: A localized string to summarize the collaboration options.

## See Also

### Creating share options

- [init(coder:)](sharedwithyoucore/swcollaborationshareoptions/init(coder:).md)
- [init(optionsGroups:)](sharedwithyoucore/swcollaborationshareoptions/init(optionsgroups:).md)
