mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
KeyVerificationDataLoadingViewController: Show navigation bar if needed.
This commit is contained in:
+10
-2
@@ -69,8 +69,16 @@ final class KeyVerificationDataLoadingViewController: UIViewController {
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
|
||||
// Hide back button
|
||||
self.navigationItem.setHidesBackButton(true, animated: animated)
|
||||
if let navigationController = self.navigationController {
|
||||
if navigationController.navigationBar.isHidden == true {
|
||||
self.navigationItem.hidesBackButton = true
|
||||
// Show navigation bar if needed
|
||||
self.navigationController?.setNavigationBarHidden(false, animated: animated)
|
||||
} else {
|
||||
// Hide back button
|
||||
self.navigationItem.setHidesBackButton(true, animated: animated)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
Reference in New Issue
Block a user