WKWebView for New Window Support

Hello Experts,

What are the best practices for handling New Window, window.open() or target=_blank etc - does it work inside the WKWebView? Is there support for TAB'ed view in WKWebView?


Thanks

Replies

'new window'?


iOS doesn't use multiple windows, so you'd be doing a segue to a different view.


As for tabs, you can insert a wkwebview (not to be confused w/https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller) into a tabbar controller, and let the user navigate at that level.


Otherwise, maybe if you can better describe the flow you have in mind as relates to a 'new window'...