---
title: intents
framework: appintentstesting
role: symbol
role_heading: Instance Property
path: appintentstesting/intentdefinitions/intents
---

# intents

The definitions for the target app’s app intents.

## Declaration

```swift
var intents: IntentDefinitions.DefinitionCollection<AppIntentDefinition> { get }
```

## Mentioned in

Testing your App Intents code

## Discussion

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" ]

## See Also

### Accessing app intents

- [AppIntentDefinition](appintentstesting/appintentdefinition.md)
