---
title: "init(title:identifier:subtitle:selected:requiredOptionsIdentifiers:)"
framework: sharedwithyoucore
role: symbol
role_heading: Initializer
path: "sharedwithyoucore/swcollaborationoption/init(title:identifier:subtitle:selected:requiredoptionsidentifiers:)"
---

# init(title:identifier:subtitle:selected:requiredOptionsIdentifiers:)

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

## Declaration

```swift
convenience init(title: String, identifier: String, subtitle: String = "", selected: Bool = false, requiredOptionsIdentifiers: [String] = [])
```

## Parameters

- `title`: A localized string the system displays as a title.
- `identifier`: A unique identifier.
- `subtitle`: A localized string the system displays as a subtitle.
- `selected`: A Boolean value that represents the selected state of an option.
- `requiredOptionsIdentifiers`: An array of option identifiers.

## See Also

### Creating collaboration options

- [init(title:identifier:)](sharedwithyoucore/swcollaborationoption/init(title:identifier:).md)
