sunghyun-k / stack-navigation

Navigation library for UIKit and SwiftUI that operates based on Path state.
MIT License
4 stars 0 forks source link

Add option to hide navigation bar [Improvement] #1

Open suraj-shetty opened 9 months ago

suraj-shetty commented 9 months ago

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.

sunghyun-k commented 9 months ago

Thanks for sharing your idea. I also agree with that opinion. I'll try making it.