WKWebView function for detecting if the URL has changed
<p>Is there a function for the WKWebView class that allows you to detect whenever the URL of that WebView has changed?</p>

<p>The <code>didCommit</code> and <code>didStartProvisionalNavigation</code> functions don't always seem to fire when working with certain elements within the WebView.</p>

<p><strong>EDIT:</strong> Attempted adding a Notification observer. Here's what I have thus far:</p>

<pre><code>extension Notification.Name {
    static let checkURL = Notification.Name("checkURL")
}

NotificationCenter.default.post(name: .checkURL, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(getter: webView.url), name: .checkURL, object: webView.url)
</code></pre>