Answers for "remove nav bar title swiftui"

3

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
0

swift show title on navigation bar programmatically

override func viewDidLoad() {
     super.viewDidLoad()
     self.title = "Your title over here"
}
Posted by: Guest on July-02-2020

Code answers related to "remove nav bar title swiftui"

Code answers related to "Swift"

Browse Popular Code Answers by Language