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()
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
I think someone from sketch team can fix this in Sketch app. They can refer below link.