aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorJeroen Leenarts <jeroen.leenarts@gmail.com>2018-09-20 00:27:49 +0200
committerRoopesh Chander <roop@roopc.net>2018-10-28 23:19:45 +0530
commit09a22841048e259ff73ea9b2342667b18fd1f608 (patch)
treef7b5c4c091ea0cd1dd45336f268575b22b1baa64 /WireGuard
parentQR code: Integrate Eric's QR code scanner (diff)
downloadwireguard-apple-09a22841048e259ff73ea9b2342667b18fd1f608.tar.xz
wireguard-apple-09a22841048e259ff73ea9b2342667b18fd1f608.zip
QR code: Make sure correct layering is used to make sure hint remains visible.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard')
-rw-r--r--WireGuard/WireGuard/UI/iOS/QRScanViewController.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/QRScanViewController.swift b/WireGuard/WireGuard/UI/iOS/QRScanViewController.swift
index e95ff08f..17251747 100644
--- a/WireGuard/WireGuard/UI/iOS/QRScanViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/QRScanViewController.swift
@@ -44,7 +44,7 @@ class QRScanViewController: UIViewController {
previewLayer = AVCaptureVideoPreviewLayer(session: captureSession)
previewLayer.frame = view.layer.bounds
previewLayer.videoGravity = .resizeAspectFill
- view.layer.addSublayer(previewLayer)
+ view.layer.insertSublayer(previewLayer, at: 0)
}
override func viewWillAppear(_ animated: Bool) {