---
title: "shareOptionsWithOptionsGroups:summary:"
framework: sharedwithyoucore
role: symbol
role_heading: Type Method
path: "sharedwithyoucore/swcollaborationshareoptions/shareoptionswithoptionsgroups:summary:"
---

# shareOptionsWithOptionsGroups:summary:

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

## Declaration

```occ
+ (SWCollaborationShareOptions *) shareOptionsWithOptionsGroups:(NSArray<SWCollaborationOptionsGroup *> *) optionsGroups summary:(NSString *) summary;
```

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

## Return Value

Return Value A SWCollaborationShareOptions object.

## See Also

### Creating share options

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