Hi,
How are we supposed to handle links with target="_blank"
in the new SwiftUI WebView? I don't see anything in WebPage.NavigationDeciding
or elsewhere that corresponds to the delegate method used for WKWebView
.
You're right, the SwiftUI WebView does not provide APIs for handling those kinds of links (such as the API mentioned by xueyuan above).
Please file an enhancement request asking for this functionality using the Feedback Assistant. If you file the request, please post the Feedback number here so we can make sure it gets routed to the right team.
If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?