After changing Strict Concurrency Checking - Minimal -> Complete, WKNavigationDelegate functions are not work.
In my case,
optional func webView(
_ webView: WKWebView,
decidePolicyFor navigationAction: WKNavigationAction,
decisionHandler: @escaping @MainActor (WKNavigationActionPolicy) -> Void
)
is not work. After change Strict Concurrency Checking Option
What I ve attempted is as follows:
-
import WebKit -> @preconcurrency import WebKit
-> Not work -
Changing decisionHandler to async function
-> Not work
It is just Apple Bug?
Are there things I can try to more?
- Reverting the options makes it function normally.