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