url
The URL for the current webpage.
Declaration
var url: URL? { get }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.