Tab bar padding fix

This commit is contained in:
Pfeil, Scott Robert 2020-08-20 12:25:33 -04:00
parent 8ae5d7f2a9
commit 2a863506bd

View File

@ -808,7 +808,7 @@ CGFloat const PanelAnimationDuration = 0.2;
self.tabBar.hidden = !showing;
self.bottomConstraint.active = NO;
if (showing && self.tabBar) {
NSLayoutConstraint *bottom = [self.view.safeAreaLayoutGuide.bottomAnchor constraintEqualToAnchor:self.tabBar.bottomAnchor];
NSLayoutConstraint *bottom = [self.view.bottomAnchor constraintEqualToAnchor:self.tabBar.bottomAnchor];
bottom.active = YES;
self.bottomConstraint = bottom;
} else {