No extra orientation for Debug (#571)

This commit is contained in:
Nathan Mattes 2022-11-14 17:16:33 +01:00
parent cf2f7850b7
commit 105a98a395
1 changed files with 0 additions and 4 deletions

View File

@ -65,11 +65,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
extension AppDelegate {
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
#if DEBUG
return .all
#else
return UIDevice.current.userInterfaceIdiom == .phone ? .portrait : .all
#endif
}
}