Skip to content

Commit

Permalink
fix: ignore viewport preference on WKWebView
Browse files Browse the repository at this point in the history
apache/cordova-ios#417 does not apply to WKWebView,
therefore always return NO when running there. This entire workaround to
disable viewport fit injection is to be _removed_ once WKWebView is the
_sole_ option.

References https://outsystemsrd.atlassian.net/browse/RNMT-3245
  • Loading branch information
EiyuuZack authored and andredestro committed Nov 23, 2022
1 parent 95f465e commit 3b59b43
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ios/CDVStatusBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ - (void)disableViewportFitForiOS12:(BOOL)disable {
if (_eventsCallbackId == nil) {
return;
}

// https://github.com/apache/cordova-ios/issues/417 does not apply to WKWebView, therefore always return NO when running there
// This entire workaround to disable viewport fit injection is to be _removed_ once WKWebView is the _sole_ option
NSDictionary* payload = @{@"type": @"viewport", @"disableiOS12": [self.webView isKindOfClass: [WKWebView class]] ? @(NO) : @(disable)};
Expand Down

0 comments on commit 3b59b43

Please sign in to comment.