<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntentsTesting",
  "identifier" : "/documentation/AppIntentsTesting/AppEnumDefinition/makeCase(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents Testing"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting0A14EnumDefinitionV8makeCaseyAA03AnyaD0VSSF"
  },
  "title" : "makeCase(_:)"
}
-->

# makeCase(_:)

Creates an enumeration case with the specified raw value.

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

## Parameters

`rawValue`

The string representation of the enumeration case.

## Return Value

A type-erased enumeration instance with the specified value.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)