diff --git a/Source/Infra/EKRootViewController.swift b/Source/Infra/EKRootViewController.swift index 2647db34..03ca8c02 100644 --- a/Source/Infra/EKRootViewController.swift +++ b/Source/Infra/EKRootViewController.swift @@ -59,7 +59,7 @@ class EKRootViewController: UIViewController { override var supportedInterfaceOrientations: UIInterfaceOrientationMask { guard let lastAttributes = lastAttributes else { - return super.supportedInterfaceOrientations + return .all } switch lastAttributes.positionConstraints.rotation.supportedInterfaceOrientations { case .standard: diff --git a/Source/Infra/EKWindowProvider.swift b/Source/Infra/EKWindowProvider.swift index 0cc96aa6..5e0204a1 100644 --- a/Source/Infra/EKWindowProvider.swift +++ b/Source/Infra/EKWindowProvider.swift @@ -65,6 +65,18 @@ final class EKWindowProvider: EntryPresenterDelegate { entryVC.setStatusBarStyle(for: attributes) entryWindow.windowLevel = attributes.windowLevel.value + + if #available(iOS 13.0, *) { + switch attributes.displayMode { + case .inferred: + entryWindow.overrideUserInterfaceStyle = .unspecified + case .light: + entryWindow.overrideUserInterfaceStyle = .light + case .dark: + entryWindow.overrideUserInterfaceStyle = .dark + } + } + if presentInsideKeyWindow { entryWindow.makeKeyAndVisible() } else {