mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-24 19:51:29 +01:00
Fix nav bar crash and empty settings screen after logout (#2124)
This commit is contained in:
parent
33c2646ea1
commit
6766ed496d
@ -122,6 +122,7 @@ struct AppView: View {
|
||||
.tag(tab)
|
||||
}
|
||||
}
|
||||
.id(availableTabs.count) /// Resets the TabView state when the number of tabs changes to avoid navigation bar issues and prevent crashes
|
||||
.introspect(.tabView, on: .iOS(.v17, .v18)) { (tabview: UITabBarController) in
|
||||
tabview.tabBar.isHidden = horizontalSizeClass == .regular
|
||||
tabview.customizableViewControllers = []
|
||||
|
Loading…
Reference in New Issue
Block a user