Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

Commit

Permalink
Guard the call for XCode 9
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Sep 20, 2017
1 parent e4ec6db commit 9b25dad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ios/CDVWKWebViewEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@ - (void)pluginInitialize

// re-create WKWebView, since we need to update configuration
WKWebView* wkWebView = [[WKWebView alloc] initWithFrame:self.frame configuration:configuration];
if (@available(iOS 11.0, *)) {
[wkWebView.scrollView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
}

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
[wkWebView.scrollView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
#endif

wkWebView.UIDelegate = self.uiDelegate;
self.engineWebView = wkWebView;

Expand Down

0 comments on commit 9b25dad

Please sign in to comment.