浏览代码

use translucent qr-code title bar

the old, totally transparent title bar led to more or less
unreadable tabs, depending on what is shown to the camera.

after figuring out the translucent thingie at #1843,
this is a nice improvement for the other view using a tabbar in the title.

moreover, this pr adds an animation for both tabs,
things really seem to be fast enough,
also, the system seem to do UIViewController creation in parallel anyways.
B. Petersen 2 年之前
父节点
当前提交
d14d834612
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      deltachat-ios/Controller/QrPageController.swift

+ 5 - 1
deltachat-ios/Controller/QrPageController.swift

@@ -74,6 +74,10 @@ class QrPageController: UIPageViewController {
             animated: true,
             completion: nil
         )
+
+        if #available(iOS 13, *) {
+            self.navigationController?.navigationBar.scrollEdgeAppearance = self.navigationController?.navigationBar.standardAppearance
+        }
     }
 
     override func viewWillAppear(_ animated: Bool) {
@@ -101,7 +105,7 @@ class QrPageController: UIPageViewController {
         } else {
             let qrCodeReaderController = makeQRReader()
             self.qrCodeReaderController = qrCodeReaderController
-            setViewControllers([qrCodeReaderController], direction: .forward, animated: false, completion: nil)
+            setViewControllers([qrCodeReaderController], direction: .forward, animated: true, completion: nil)
         }
     }