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

# url

The URL for the current webpage.

## Declaration

```swift
var url: URL? { get }
```

## Discussion

Discussion This property contains the URL for the webpage that the web view currently displays. Use this URL in places where you reflect the webpage address in your app’s user interface. WKWebView is key-value observing (KVO) compliant for this property.

## See Also

### Inspecting the view information

- [scrollView](webkit/wkwebview/scrollview.md)
- [title](webkit/wkwebview/title.md)
- [mediaType](webkit/wkwebview/mediatype.md)
- [customUserAgent](webkit/wkwebview/customuseragent.md)
- [serverTrust](webkit/wkwebview/servertrust.md)
- [hasOnlySecureContent](webkit/wkwebview/hasonlysecurecontent.md)
- [themeColor](webkit/wkwebview/themecolor.md)
- [underPageBackgroundColor](webkit/wkwebview/underpagebackgroundcolor.md)
