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

Commit

Permalink
Keep @available to hush warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Sep 20, 2017
1 parent 9b25dad commit eaa8f29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ios/CDVWKWebViewEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ - (void)pluginInitialize
WKWebView* wkWebView = [[WKWebView alloc] initWithFrame:self.frame configuration:configuration];

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
[wkWebView.scrollView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
if (@available(iOS 11.0, *)) {
[wkWebView.scrollView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
}
#endif

wkWebView.UIDelegate = self.uiDelegate;
Expand Down

0 comments on commit eaa8f29

Please sign in to comment.