---
title: AnyAppIntent
framework: appintentstesting
role: symbol
role_heading: Structure
path: appintentstesting/anyappintent
---

# AnyAppIntent

A type-erased, intermediate representation of an app intent for testing purposes.

## Declaration

```swift
@dynamicMemberLookup struct AnyAppIntent
```

## Overview

Overview The AnyAppIntent structure resolves to your actual app intent type and gives you access to its parameters and results at runtime, enabling you to test your app intent code as shown in the following example: // Getting an intent definition and creating an instance. let definitions = IntentDefinitions(     bundleIdentifier: "com.example.app" ) var intent = definitions.intents["CreateNote"]     .makeIntent()

// Setting any intent parameters. intent.title = "Meeting Notes" intent.priority = 5 intent.isUrgent = true

// Reading parameters, when needed. let title: String? = try intent.title

// Performing the intent. let result = try await intent.run()

// Adding your verification code. // ...

## Topics

### Identifying the intent

- [bundleIdentifier](appintentstesting/anyappintent/bundleidentifier.md)
- [identifier](appintentstesting/anyappintent/identifier.md)

### Performing the intent

- [run()](appintentstesting/anyappintent/run().md)

### Subscripts

- [subscript(dynamicMember:)](appintentstesting/anyappintent/subscript(dynamicmember:)-127ab.md)
- [subscript(dynamicMember:)](appintentstesting/anyappintent/subscript(dynamicmember:)-7agfn.md)
- [subscript(dynamicMember:)](appintentstesting/anyappintent/subscript(dynamicmember:)-8l8h0.md)

### Default Implementations

- [CustomStringConvertible Implementations](appintentstesting/anyappintent/customstringconvertible-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Intermediate types

- [AnyAppEntity](appintentstesting/anyappentity.md)
- [AnyEntityQuery](appintentstesting/anyentityquery.md)
- [AnyAppEnum](appintentstesting/anyappenum.md)
- [AnyTransientAppEntity](appintentstesting/anytransientappentity.md)
