Answers for "how to hide navigation view of top view in swiftui"

2

navigationview hide header swiftui

.navigationBarHidden(true)
.navigationBarTitle(Text("Home"))
.edgesIgnoringSafeArea([.top, .bottom])
Posted by: Guest on October-06-2020
2

swift hide navigation bar

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    navigationController?.setNavigationBarHidden(true, animated: animated)
}

override func viewWillDisappear(_ animated: Bool) {
    super.viewWillDisappear(animated)
    navigationController?.setNavigationBarHidden(false, animated: animated)
}
Posted by: Guest on June-15-2020

Code answers related to "how to hide navigation view of top view in swiftui"

Code answers related to "Swift"

Browse Popular Code Answers by Language