style
TypeScriptget style(): IntentChoiceOption_StyleSwift declarationlet style: IntentChoiceOption.StyleThe style applied to the option, affecting its visual appearance in the system UI.
struct · iOS 26.0+ · SDK 27.1
struct IntentChoiceOptionA structure representing an entry in a list of options for a person to choose from before an app intent resumes its action. Each option includes display text and an optional style that influences its visual presentation. For example, an option for deleting a file might use a text and style to communicate its destructive action.
get style(): IntentChoiceOption_StyleSwift declarationlet style: IntentChoiceOption.StyleThe style applied to the option, affecting its visual appearance in the system UI.
get title(): _Foundation_LocalizedStringResourceSwift declarationlet title: LocalizedStringResourceThe localized text displayed for this option.
static init(title: _Foundation_LocalizedStringResource, style?: IntentChoiceOption_Style): IntentChoiceOptionSwift declarationinit(title: LocalizedStringResource, style: IntentChoiceOption.Style = .default)Creates a new option for a person to choose to continue an app intent. - Parameters: - title: The localized text to display for this option. - style: The visual style to apply; for example, ``AppIntents/IntentChoiceOption/destructive`` or ``AppIntents/IntentChoiceOption/cancel``. By default, the `style` for an intent choice option is ``AppIntents/IntentChoiceOption/default``.
static get cancel(): IntentChoiceOptionSwift declarationstatic var cancel: IntentChoiceOption { get }A system-provided option that cancel the app intent. Selecting this option causes the ``requestChoice(between:dialog:)`` method to throw a cancellation error.
No declarations were skipped in this snapshot.