You are facing this issue is because you might be using WKWebView's load request in main thread. So anywhere you are using loadRequest method, You should use
instead of this
webView.load(request)
Use
DispatchQueue.main.async {
self.webView.load(request)
** }**
And it will resolve your Error. (You must be facing this issue in latest iOS Version 16.0 or above)