Skip to content

Commit

Permalink
fix(ios): enable webview inspection (#13879)
Browse files Browse the repository at this point in the history
* fix(ios): enable webview inspection

* check for os version

* close if correctly

* update if

* update if

---------

Co-authored-by: Hans Knöchel <hansemannn@users.noreply.github.com>
  • Loading branch information
m1ga and hansemannn committed Jul 10, 2023
1 parent 4202779 commit 8061acd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iphone/Classes/TiUIWebView.m
Expand Up @@ -83,7 +83,11 @@ - (WKWebView *)webView
_willHandleTouches = [TiUtils boolValue:[[self proxy] valueForKey:@"willHandleTouches"] def:YES];

_webView = [[WKWebView alloc] initWithFrame:[self bounds] configuration:config];

#if TARGET_OS_SIMULATOR && __IPHONE_OS_VERSION_MAX_ALLOWED >= 160400
if (@available(iOS 16.4, *)) {
_webView.inspectable = YES;
}
#endif
[_webView setUIDelegate:self];
[_webView setNavigationDelegate:self];
[_webView setContentMode:[self contentModeForWebView]];
Expand Down

0 comments on commit 8061acd

Please sign in to comment.