mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-14 03:40:00 +02:00
Improve layout of ServiceTermsModalScreenViewController on 4" devices.
This commit is contained in:
@@ -78,6 +78,18 @@ final class ServiceTermsModalScreenViewController: UIViewController {
|
||||
self.viewModel.process(viewAction: .load)
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
if view.frame.size.height < 568 {
|
||||
navigationController?.setNavigationBarHidden(true, animated: animated)
|
||||
}
|
||||
}
|
||||
|
||||
override func viewWillDisappear(_ animated: Bool) {
|
||||
if navigationController?.isNavigationBarHidden == true {
|
||||
navigationController?.setNavigationBarHidden(false, animated: animated)
|
||||
}
|
||||
}
|
||||
|
||||
override var preferredStatusBarStyle: UIStatusBarStyle {
|
||||
return self.theme.statusBarStyle
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user