intents
The definitions for the target app’s app intents.
Declaration
var intents: IntentDefinitions.DefinitionCollection<AppIntentDefinition> { get }Mentioned in
Discussion
Access individual intent definitions using subscript syntax with the intent’s type name as shown in the following example:
let definitions = IntentDefinitions(
bundleIdentifier: "com.apple.example"
)
let orderIntent = definitions.intents[
"OrderCoffeeIntent"
]