No extra orientation for Debug (#571)
This commit is contained in:
parent
cf2f7850b7
commit
105a98a395
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue