Skip to content

Commit

Permalink
try to fix iPad tab bar without affecting Mac or iPhone
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuatbrown committed Dec 13, 2024
1 parent 8e94b4f commit 920ad6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Nos/Views/TabBarController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ class WorkaroundTabBarController: UITabBarController {
// Hides the top tabs
mode = .tabSidebar
sidebar.isHidden = true
additionalSafeAreaInsets.bottom = 10
traitOverrides.horizontalSizeClass = .compact
} else if traitCollection.userInterfaceIdiom == .pad {
additionalSafeAreaInsets.bottom = 10
traitOverrides.horizontalSizeClass = .compact
}
}

Expand Down

0 comments on commit 920ad6b

Please sign in to comment.