Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 4491ad3

Browse files
committed
[webview_flutter] Fix iOS WebView ignoring SafeArea widget and iOS 13 WebView scroll indicator showing at random location. #107639
1 parent 1d2cc3a commit 4491ad3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/webview_flutter/webview_flutter_wkwebview/ios/Classes/FWFWebViewHostApi.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ - (void)createWithIdentifier:(nonnull NSNumber *)identifier
113113
configuration:configuration
114114
binaryMessenger:self.binaryMessenger
115115
instanceManager:self.instanceManager];
116+
117+
if (@available(iOS 13.0, *)) {
118+
webView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
119+
webView.scrollView.automaticallyAdjustsScrollIndicatorInsets = NO;
120+
}
121+
116122
[self.instanceManager addDartCreatedInstance:webView withIdentifier:identifier.longValue];
117123
}
118124

0 commit comments

Comments
 (0)