I’m loading a some URL content in WebView. The title of navigation item is set to web view title (refer below code) :
extension WebPageView: WKNavigationDelegate {
func webView(_: WKWebView, didFinish _: WKNavigation!) {
loader?.hide()
navigationItem.title = webView?.title
}
. . .
}
However, the issue with this is that content of web view is loaded thereafter title of navigation item is set (reported as bug).
Is there any way that title of navigation item is set and then web view content should be loaded?