Skip to content

Commit

Permalink
fix(ios): enable webview inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Jul 4, 2023
1 parent 9308d2b commit 5208114
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iphone/Classes/TiUIWebView.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ - (WKWebView *)webView
_willHandleTouches = [TiUtils boolValue:[[self proxy] valueForKey:@"willHandleTouches"] def:YES];

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

#if TARGET_OS_SIMULATOR
_webView.inspectable = YES;
#else
[_webView setUIDelegate:self];
[_webView setNavigationDelegate:self];
[_webView setContentMode:[self contentModeForWebView]];
Expand Down

0 comments on commit 5208114

Please sign in to comment.