Fix nav bar crash and empty settings screen after logout (#2124)

This commit is contained in:
Adem Özsayın 2024-07-29 08:57:33 +03:00 committed by GitHub
parent 33c2646ea1
commit 6766ed496d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = []