Contents

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/destructive or Cancel. By default, the style for an intent choice option is AppIntents/IntentChoiceOption/default.