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 {
|
extension AppDelegate {
|
||||||
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
|
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
|
||||||
#if DEBUG
|
|
||||||
return .all
|
|
||||||
#else
|
|
||||||
return UIDevice.current.userInterfaceIdiom == .phone ? .portrait : .all
|
return UIDevice.current.userInterfaceIdiom == .phone ? .portrait : .all
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user