Skip to content

Instantly share code, notes, and snippets.

@akingdom
Created August 13, 2023 12:09
Show Gist options
  • Save akingdom/832a716c80fa883aee259280d828ddca to your computer and use it in GitHub Desktop.
Save akingdom/832a716c80fa883aee259280d828ddca to your computer and use it in GitHub Desktop.
As of iOS 16.4, there is an extra step to allowing a webkit view to be inspected (via remote debugging) from Safari.
#if DEBUG
if (@available(iOS 16.4, *)) {
self.webView.inspectable = true;
}
#endif
#if DEBUG
if #available(iOS 16.4, *) {
self.webView.isInspectable = true
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment