<!--
{
  "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/AnyAppEnum/init(typeIdentifier:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App Intents Testing",
      "AppIntentsTesting"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting03AnyA4EnumV14typeIdentifier5valueACSS_s25LosslessStringConvertible_ptcfc"
  },
  "title" : "init(typeIdentifier:value:)"
}
-->

# init(typeIdentifier:value:)

Creates an enumeration with a typed raw value.

```
init(typeIdentifier: String, value: any LosslessStringConvertible)
```

## Parameters

`typeIdentifier`

The enumeration type identifier.

`value`

The raw, typed value that gets converted to a string representation.

---

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)