<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/DynamicIsland/widgetURL(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit13DynamicIslandV9widgetURLyAC10Foundation0F0VSgF"
  },
  "title" : "widgetURL(_:)"
}
-->

# widgetURL(_:)

Sets the URL that opens the corresponding app of a Live Activity when a user taps on the Live Activity.

```
func widgetURL(_ url: URL?) -> DynamicIsland
```

## Parameters

`url`

The URL that opens the app.

## Return Value

The configuration object for the Dynamic Island with the specified URL.

## Discussion

By setting the URL with this function, it becomes the default URL for deep linking into the app
for each view of the Live Activity. However, if you include a
<doc://com.apple.documentation/documentation/SwiftUI/Link> in the Live Activity,
the link takes priority over the default URL. When a person taps on the `Link`, it takes them to the
place in the app that corresponds to the URL of the `Link`.

---

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)