---
title: "makeCase(_:)"
framework: appintentstesting
role: symbol
role_heading: Instance Method
path: "appintentstesting/appenumdefinition/makecase(_:)"
---

# makeCase(_:)

Creates an enumeration case with the specified raw value.

## Declaration

```swift
func makeCase(_ rawValue: String) -> AnyAppEnum
```

## Parameters

- `rawValue`: The string representation of the enumeration case.

## Mentioned in

Testing your App Intents code

## Return Value

Return Value A type-erased enumeration instance with the specified value.

## Discussion

Discussion The provided rawValue needs to match one of your enum’s cases.
