---
title: url
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webpage/url
---

# url

The URL for the current webpage.

## Declaration

```swift
@MainActor final var url: URL? { get }
```

## Discussion

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

- [WebPage.CSSMediaType](webkit/webpage/cssmediatype.md)
- [title](webkit/webpage/title.md)
- [mediaType](webkit/webpage/mediatype.md)
- [customUserAgent](webkit/webpage/customuseragent.md)
- [serverTrust](webkit/webpage/servertrust.md)
- [hasOnlySecureContent](webkit/webpage/hasonlysecurecontent.md)
- [themeColor](webkit/webpage/themecolor.md)
- [isBlockedByScreenTime](webkit/webpage/isblockedbyscreentime.md)
- [isInspectable](webkit/webpage/isinspectable.md)
- [isWritingToolsActive](webkit/webpage/iswritingtoolsactive.md)
