Today I tried this sample plugin with-webview, but I am not able to see this WKWebView in safari Develop menu.
I tried different ways. Then i added below code in plugin:
const existingWebview = getWebview(webviewIdentifier)
let nativeWebView = existingWebview.getNativeWebViewHandle()
nativeWebView.setInspectable(true);
After this I am able to see the webview in safari. Hopefully this helps someone.
In my other Mac App with XCode 14.2, I faced the same issue for WKWebView. So I used this
[https://stackoverflow.com/questions/76216183/how-to-debug-wkwebview-in-ios-16-4-1-using-xcode-14-2/76603043#76603043]
I think someone from sketch team can fix this in Sketch app. They can refer below link.
[https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/]