We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b76827 commit a6551fdCopy full SHA for a6551fd
Sources/InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.m
@@ -74,7 +74,10 @@ - (void)loadView {
74
[self.view addSubview:self.webView];
75
76
// Create constraints to match the entire safe area layout:
77
- UILayoutGuide *safeArea = self.view.safeAreaLayoutGuide;
+ UILayoutGuide *safeArea = self.view.layoutMarginsGuide;
78
+ if (@available(iOS 11.0, *)) {
79
+ safeArea = self.view.safeAreaLayoutGuide;
80
+ }
81
[NSLayoutConstraint activateConstraints:@[
82
[self.webView.topAnchor constraintEqualToAnchor:safeArea.topAnchor],
83
[self.webView.bottomAnchor constraintEqualToAnchor:safeArea.bottomAnchor],
0 commit comments