It would be a great to hide/ show the navigation bar.
In my project, I've added StackNavigationView as part of another view(HomeView). HomeView is inside a NavigationStack
I've used following methods to hide the navigation bar, but it didn't work
.toolbar(.hidden, for: .navigationBar).navigationBarTitleDisplayMode(.inline)
I was able to achieve it by using the SwiftUI-Introspect framework.
It'll be helpful to add this feature as part of the framework itself.
It would be a great to hide/ show the navigation bar.
In my project, I've added StackNavigationView as part of another view(HomeView). HomeView is inside a NavigationStack
I've used following methods to hide the navigation bar, but it didn't work
.toolbar(.hidden, for: .navigationBar)
.navigationBarTitleDisplayMode(.inline)
I was able to achieve it by using the SwiftUI-Introspect framework.
It'll be helpful to add this feature as part of the framework itself.