How do I set up IOS webview?

How do I set up IOS webview?

Hi everyone, I have a problem with the webview settings.
For android I set it in mainActivity.java, AndroidManifest.xml and it works fine, but for ios I haven’t solved it yet and it shows safari web on clicking OAuth login button.
Where should I modify the below code?

func webView(
  _ webView: WKWebView,
  decidePolicyFor navigationAction: WKNavigationAction,
  decisionHandler: @escaping (WKNavigationActionPolicy) -> Void
) {
  if let url = navigationAction.request.url,
  url.scheme != "http" && url.scheme != "https" {
    UIApplication.shared.open(url, options: [:], completionHandler:{ (success) in
      if !(success){
        
      }
    })
    decisionHandler(.cancel)
  } else {
    decisionHandler(.allow)
  }
}

Translated with DeepL.com (free version)