init(title:style:)
Creates a new option for a person to choose to continue an app intent.
Declaration
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/destructiveor Cancel. By default, thestylefor an intent choice option isAppIntents/IntentChoiceOption/default.