Hello everyone.
I am new to Swift and SwiftUI, and I have got in trouble with the modifier .navigationBarHidden(), which doesn't work consistently if I click from a page called .navigationBarHidden(true) to a page with .navigationBarHidden(false) and then go back. The navigation bar on the second page will hide sometimes without any signs.
Are there any better practices to control the state of the navigation bar to prevent the above issue? Thanks a lot!
I am new to Swift and SwiftUI, and I have got in trouble with the modifier .navigationBarHidden(), which doesn't work consistently if I click from a page called .navigationBarHidden(true) to a page with .navigationBarHidden(false) and then go back. The navigation bar on the second page will hide sometimes without any signs.
Are there any better practices to control the state of the navigation bar to prevent the above issue? Thanks a lot!