<!--
{
  "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/CustomURLRepresentationParameterConvertible/urlRepresentationParameter",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents43CustomURLRepresentationParameterConvertibleP017urlRepresentationE0SSSgvp"
  },
  "title" : "urlRepresentationParameter"
}
-->

# urlRepresentationParameter

The string representation of the type’s content.

```
var urlRepresentationParameter: String? { get async }
```

## Discussion

Use this property to provide a string that describes your custom type. When specifying the string, use Swift interpolated values
to incorporate data from any properties of your type, and specify only characters that URLs support. The following
example shows a custom type that uses data from multiple properties to generate a string for URLs.

```swift
struct MyCustomType: CustomURLRepresentationParameterConvertible {
   var name: String
   var id: UUID

   var urlRepresentationParameter: String? { "\(name)/\(id)" }
}
```

---

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)