Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ - (void)tabSafeAreaInsetsDidChange:(UIEdgeInsets)insets
CGRectGetMaxY(tabBarFrame) >= CGRectGetMaxY(bounds);
if (hasBottomTabBar) {
insets.top = MAX(insets.top, LegacyTopInset);
insets.bottom = MIN(insets.bottom, LegacyBottomInset);
// Never go below the system inset: anything less leaves content under the tab bar, where taps switch tabs.
insets.bottom = MAX(insets.bottom, LegacyBottomInset);
} else {
insets.bottom = 0;
// A window with no status bar along the top, such as the iPhone Duo's, reports no top inset. Keep
Expand Down
Loading