Skip to content

chore: make WebView inspectable#11

Open
luca-gr4vy wants to merge 4 commits intomainfrom
chore/make-webview-inspectable
Open

chore: make WebView inspectable#11
luca-gr4vy wants to merge 4 commits intomainfrom
chore/make-webview-inspectable

Conversation

@luca-gr4vy
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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