Explorar o código

always show infoLabel on top of the QRCodeReader

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
dbc0852513
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      deltachat-ios/Controller/QrCodeReaderController.swift

+ 1 - 1
deltachat-ios/Controller/QrCodeReaderController.swift

@@ -101,6 +101,7 @@ class QrCodeReaderController: UIViewController {
         }
         view.layer.addSublayer(videoPreviewLayer)
         videoPreviewLayer.frame = view.layer.bounds
+        view.bringSubviewToFront(infoLabel)
     }
     
     private func setupInfoLabel() {
@@ -111,7 +112,6 @@ class QrCodeReaderController: UIViewController {
         infoLabelBottomConstraint?.isActive = true
         infoLabel.constraintAlignLeadingTo(view, paddingLeading: 5).isActive = true
         infoLabel.constraintAlignTrailingTo(view, paddingTrailing: 5).isActive = true
-        view.bringSubviewToFront(infoLabel)
     }
     
     private func showCameraWarning() {