Archived
1
Fork 0

Properly update navigation title on iOS

This commit is contained in:
redstrate 2020-05-24 21:56:48 -04:00
parent 83d10e5a28
commit 5d20a7f71b

View file

@ -35,6 +35,7 @@ class PostViewController: UIViewController, UIPopoverPresentationControllerDeleg
}
self.view.window?.windowScene!.title = windowTitle
navigationItem.title = windowTitle
}
override func viewWillAppear(_ animated: Bool) {
@ -57,12 +58,12 @@ class PostViewController: UIViewController, UIPopoverPresentationControllerDeleg
navigationItem.leftBarButtonItem = UIBarButtonItem(title: "Done", style: .plain, target: self, action: #selector(closePopup))
}
}
updateWindowTitle()
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
updateWindowTitle()
}
@objc func closePopup() {