mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 07:21:58 +00:00
fix: hide status bar when locked to landscape on iPad
This commit is contained in:
parent
70d3eee9d2
commit
f2d0cc8778
2 changed files with 5 additions and 5 deletions
|
|
@ -370,15 +370,15 @@ final class RootComposeViewController: UIViewController, UITabBarDelegate {
|
|||
}
|
||||
|
||||
override var childForHomeIndicatorAutoHidden: UIViewController? {
|
||||
immersiveController(in: contentController) ?? contentController
|
||||
OrientationLockCoordinator.shared.supportedOrientations == .landscape ? nil : (immersiveController(in: contentController) ?? contentController)
|
||||
}
|
||||
|
||||
override var childForScreenEdgesDeferringSystemGestures: UIViewController? {
|
||||
immersiveController(in: contentController) ?? contentController
|
||||
OrientationLockCoordinator.shared.supportedOrientations == .landscape ? nil : (immersiveController(in: contentController) ?? contentController)
|
||||
}
|
||||
|
||||
override var childForStatusBarHidden: UIViewController? {
|
||||
immersiveController(in: contentController) ?? contentController
|
||||
OrientationLockCoordinator.shared.supportedOrientations == .landscape ? nil : (immersiveController(in: contentController) ?? contentController)
|
||||
}
|
||||
|
||||
override var prefersHomeIndicatorAutoHidden: Bool {
|
||||
|
|
@ -390,7 +390,7 @@ final class RootComposeViewController: UIViewController, UITabBarDelegate {
|
|||
}
|
||||
|
||||
override var prefersStatusBarHidden: Bool {
|
||||
immersiveController(in: contentController)?.prefersStatusBarHidden ?? false
|
||||
OrientationLockCoordinator.shared.supportedOrientations == .landscape ? true : (immersiveController(in: contentController)?.prefersStatusBarHidden ?? false)
|
||||
}
|
||||
|
||||
override var preferredStatusBarUpdateAnimation: UIStatusBarAnimation {
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ final class OrientationLockCoordinator {
|
|||
.compactMap { $0 as? UIWindowScene }
|
||||
.flatMap(\.windows)
|
||||
.forEach { window in
|
||||
window.rootViewController?.setNeedsUpdateOfSupportedInterfaceOrientations()
|
||||
window.rootViewController?.setNeedsUpdateOfSupportedInterfaceOrientations(); window.rootViewController?.setNeedsStatusBarAppearanceUpdate()
|
||||
}
|
||||
} else {
|
||||
if forceRotate {
|
||||
|
|
|
|||
Loading…
Reference in a new issue