Created
August 13, 2023 12:09
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if DEBUG | |
if (@available(iOS 16.4, *)) { | |
self.webView.inspectable = true; | |
} | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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