apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.16k stars 990 forks source link

RE: WkWebView full Screen in iphone X #924

Closed 75341704 closed 4 years ago

75341704 commented 4 years ago

Feature Request

WkWebView full Screen in iphone X

Motivation Behind Feature

Get full cover in the iphone.

Use safe-area-inset-* instead to handle the notch

Feature Description

Alternatives or Workarounds

//Append the code in CDVWebViewEngine.m //line no:205

if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000

if (@available(iOS 11.0, *)) {
  [wkWebView.scrollView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
}
#endif
dpogue commented 4 years ago

Control of safe-area-insets should be up to the application author to determine with the viewport-fit=cover meta directive.

Cordova will not take that control away from application authors by enforcing particular viewport behaviour.