Make sure correct layering is used to make sure hint remains visible.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jeroen Leenarts 2018-09-20 00:27:49 +02:00
parent f993c3172e
commit 74ad02132a
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,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) {