From eaa8f291608f8ca036b51df95b5bfd2f7a418a29 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Tue, 19 Sep 2017 23:03:17 -0500 Subject: [PATCH] Keep @available to hush warnings --- src/ios/CDVWKWebViewEngine.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ios/CDVWKWebViewEngine.m b/src/ios/CDVWKWebViewEngine.m index 1b0d023..618a457 100644 --- a/src/ios/CDVWKWebViewEngine.m +++ b/src/ios/CDVWKWebViewEngine.m @@ -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;