diff --git a/platform-darwin/Source/iOS/MPSitesViewController.m b/platform-darwin/Source/iOS/MPSitesViewController.m index de8183ee..523890f1 100644 --- a/platform-darwin/Source/iOS/MPSitesViewController.m +++ b/platform-darwin/Source/iOS/MPSitesViewController.m @@ -120,12 +120,14 @@ typedef NS_OPTIONS( NSUInteger, MPPasswordsTips ) { PearlRemoveNotificationObservers(); } -- (void)viewWillLayoutSubviews { +- (void)viewDidLayoutSubviews { - self.collectionView.contentInset = [self.collectionView occludedInsets]; - self.collectionView.scrollIndicatorInsets = self.collectionView.contentInset; + [super viewDidLayoutSubviews]; - [super viewWillLayoutSubviews]; + if (@available( iOS 11, * )) { + self.collectionView.layoutMargins = + UIEdgeInsetsMake( [self.collectionView occludedInsets].top - self.view.safeAreaInsets.top, 0, 0, 0 ); + } } - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { diff --git a/platform-darwin/Source/iOS/Storyboard.storyboard b/platform-darwin/Source/iOS/Storyboard.storyboard index 081e8598..ef7ec33d 100644 --- a/platform-darwin/Source/iOS/Storyboard.storyboard +++ b/platform-darwin/Source/iOS/Storyboard.storyboard @@ -1149,7 +1149,8 @@ Note that this feature requires you enable the Save Password option and have pur - + + @@ -1157,7 +1158,7 @@ Note that this feature requires you enable the Save Password option and have pur - +