Hide TabView any where in the SwiftUI project.
Go to section:
ThirdView()
.hideTabBar() // animated parameter is set to true by default
FourthView()
.showTabBar() // animated parameter is set to true by default
FirstView().onAppear {
UITabBar.hideTabBar(animated: false)
}
SecondView().onAppear {
UITabBar.showTabBar(animated: false)
}
Button {
UITabBar.toogleTabBarVisibility()
} label: {
Text("Hide/Show Tab Bar")
}