onl1ner / TabBar

📱 TabBar – highly customizable tab bar (i.e. TabView) for your SwiftUI application.
MIT License
421 stars 45 forks source link

How can I change visibility status on another view ? Seems not working #9

Closed doganaysahins closed 2 years ago

doganaysahins commented 2 years ago

Hi I would like to hide and show the TabBar when click a view

image image

it show invisible but its not updating

onl1ner commented 2 years ago

Hello, @doganaybumbaye!

As I can see on your first screenshot you are passing Binding<TabBarVisibility> variable of CustomBarController, but on the second screenshot you are modifying the local State variable of your CustomBar view.

Try to change barView.visibility = .invisible to barView.showHide.visibility = .invisible.

Hope it helps, thanks :)

onl1ner commented 2 years ago

Closing due to inactivity