Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make WebView inspectable #11

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

luca-gr4vy
Copy link
Contributor

Description: Supports debugging Embed while loaded in the webview with the Safari dev tools.

Screenshot 2024-06-24 at 13 50 01

@luca-gr4vy luca-gr4vy requested a review from AJ9 June 24, 2024 11:50
@luca-gr4vy
Copy link
Contributor Author

@AJ9 don't know if that's the right place to put the code

Comment on lines +79 to +81
if webView.responds(to: Selector(("setInspectable:"))) {
webView.perform(Selector(("setInspectable:")), with: true)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using this as webView.isInspectable = true is only available for iOS 16.x builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant