Эх сурвалжийг харах

switch portrait/landscape UI setup, always fallback to portrait

cyberta 6 жил өмнө
parent
commit
a07a873a33

+ 4 - 3
deltachat-ios/Controller/NewProfileViewController.swift

@@ -71,11 +71,12 @@ class NewProfileViewController: UIViewController, QrCodeReaderDelegate {
 
         initViews()
 
-        if UIDevice.current.orientation.isPortrait {
-            setupPortraitConstraints()
-        } else {
+        if UIDevice.current.orientation.isLandscape {
             setupLandscapeConstraints()
+        } else {
+            setupPortraitConstraints()
         }
+
     }
 
     private func initViews() {