---
title: AppEnumDefinition
framework: appintentstesting
role: symbol
role_heading: Structure
path: appintentstesting/appenumdefinition
---

# AppEnumDefinition

An app enumeration definition for testing and dynamic enumeration creation.

## Declaration

```swift
struct AppEnumDefinition
```

## Mentioned in

Testing your App Intents code

## Overview

Overview To create an app enum for testing, load the enum definition using IntentDefinitions and its enums property. Then, set its value as shown in the following example: let definitions = IntentDefinitions(     bundleIdentifier: "com.apple.example" ) let colorEnum = definitions.enums["Color"] let redCase = colorEnum.makeCase("red") // Matches `Color.red`.

## Topics

### Creating an enumeration case

- [makeCase(_:)](appintentstesting/appenumdefinition/makecase(_:).md)

### Identifying the enum

- [typeIdentifier](appintentstesting/appenumdefinition/typeidentifier.md)

### Default Implementations

- [AppIntentTypeDefinition Implementations](appintentstesting/appenumdefinition/appintenttypedefinition-implementations.md)

## Relationships

### Conforms To

- [AppIntentTypeDefinition](appintentstesting/appintenttypedefinition.md)
- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)

## See Also

### Accessing app enums

- [enums](appintentstesting/intentdefinitions/enums.md)
