LoginSignup
6
3

More than 1 year has passed since last update.

iOS16.4でSafari Webインスペクタを有効にする方法

Posted at

iOS 16.4 で Safari Web インスペクタが有効にならなくなっていたので調べてみたところ、WebView の inspectable を有効にする必要があるとのこと。

Swift

let webConfiguration = WKWebViewConfiguration()
let webView = WKWebView(frame: .zero, configuration: webConfiguration)
webView.isInspectable = true

Objective-C

WKWebViewConfiguration *webConfiguration = [WKWebViewConfiguration new];
WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:webConfiguration];
webView.inspectable = YES;
6
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3