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

This commit is contained in:
Jeroen Leenarts 2018-09-20 00:27:49 +02:00 committed by Roopesh Chander
parent 153c11c42c
commit 14a802417b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {