urlRepresentation
Swift declarationvar urlRepresentation: URL? { get }protocol · iOS 18.0+ · SDK 27.1
protocol URLRepresentableEnum : AppEnum, CustomURLRepresentationParameterConvertibleAn interface you apply to an app enum type so the system can handle it like a universal link. If your app already supports universal links for content, use this protocol to express your app enum types as URLs. When your app enum supports this protocol, the system can use the provided URL to refer to the item. Having a URL representation for your app entity also makes it easier to share the contents of that entity with Siri, Shortcuts, and other system features. > Important: This protocol requires your app to support universal links. You can’t use this protocol with a custom URL scheme or other approaches. For information about how to add support for universal links, see <doc://com.apple.documentation/documentation/Xcode/allowing-apps-and-websites-to-link-to-your-content>. Construct URLs using static text and the value of your app enum. For more information on how to create the URL representation, see ``EnumURLRepresentation``.
var urlRepresentation: URL? { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
URLRepresentableEnum.urlRepresentationParameter
The iOS SDK compiler rejected this binding: 'async' property access in a function that does not support concurrency