I'm trying to enable the web inspector on WKWebView in a Mac Catalyst app. I'm only doing this for debugging purposes. In the released the web inspector will not be enabled.
Doing this under Mac Catalyst does not work:
WKPreferences *prefs = [[WKPreferences alloc]init];
[prefs _setDeveloperExtrasEnabled:YES];
//Assign the WKPreferences to a WKWebViewConfiguration and create the web view..
Is there any way to do this?
Thanks in advance.