This commit is contained in:
VenusIsJaded 2026-05-16 03:14:55 +00:00 committed by GitHub
commit 7dd582d6bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -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 {

View file

@ -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 {