Skip to content

Commit

Permalink
Merge pull request #5 from NicFontana/fix/ipados-18-floating-tab-bar
Browse files Browse the repository at this point in the history
fix(#4): remove iPadOS 18 native floating tab bar appearance
  • Loading branch information
NicFontana authored Jan 12, 2025
2 parents 6ef1961 + 1ae3832 commit 7260c45
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ struct UITabBarControllerRepresentable: UIViewControllerRepresentable {
tabBarController.setViewControllers(controlledViews, animated: false)
tabBarController.selectedIndex = selectedTabIndex
tabBarController.tabBar.isHidden = true
if #available(iOS 18.0, *) {
tabBarController.isTabBarHidden = true
}
return tabBarController
}

Expand Down

0 comments on commit 7260c45

Please sign in to comment.