Contents

url

The URL for the current webpage.

Declaration

@MainActor final var url: URL? { get }

Discussion

This property contains the URL for the webpage currently being presented. Use this URL in places where you reflect the webpage address in your app’s user interface. If the webpage has not loaded any content yet, this value will be nil.

See Also

Inspecting page information