Improve layout of ServiceTermsModalScreenViewController on 4" devices.

This commit is contained in:
Doug
2021-09-15 14:02:36 +01:00
parent 4c2bd8ee76
commit fa320d26c7
2 changed files with 37 additions and 23 deletions
@@ -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
}