<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/EnumURLRepresentation/init(_:)-1odm",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents21EnumURLRepresentationVyACyxGSDyxAC0c6SingleD0Vyx_GGcfc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Creates a URL representation for an app enum using the provided dictionary.

```
init(_ urlRepresentations: [Enum : EnumURLRepresentation<Enum>.EnumSingleURLRepresentation])
```

## Parameters

`urlRepresentations`

A dictionary of enum values and strings. Use this dictionary to map different
strings to each case of the enumeration.

## Discussion

Use this initializer when the URLs for each case differ significantly.

---

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)