I would like to hide the Statusbar when i hide Navigationbar and Toolbar.
How i can make that that the Statusbar is hidden in if NavigationBar.hidden == false && Toolbar.hidden == false{}
??
I have no idea how i can make that, i know the func to return the Statusbarhidden but thats in the whole ViewController and i would to hide it in the func.
Thanks for your Help.
func ImageTapGesture () {
if NavigationBar.hidden == false && Toolbar.hidden == false{
NavigationBar.hidden = true
Toolbar.hidden = true
} else if NavigationBar.hidden == true && Toolbar.hidden == true {
NavigationBar.hidden = false
Toolbar.hidden = false
}
}