---
title: "init(title:style:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/intentchoiceoption/init(title:style:)"
---

# init(title:style:)

Creates a new option for a person to choose to continue an app intent.

## Declaration

```swift
init(title: LocalizedStringResource, style: IntentChoiceOption.Style = .default)
```

## Parameters

- `title`: The localized text to display for this option.
- `style`: The visual style to apply; for example, AppIntents/IntentChoiceOption/destructive or doc://com.apple.AppIntents/documentation/AppIntents/IntentChoiceOption/cancel. By default, the style for an intent choice option is AppIntents/IntentChoiceOption/default.
