Browse Source

switch portrait/landscape UI setup, always fallback to portrait

cyberta 6 năm trước cách đây
mục cha
commit
a07a873a33
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      deltachat-ios/Controller/NewProfileViewController.swift

+ 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() {