QR code: Make sure correct layering is used to make sure hint remains visible.
This commit is contained in:
parent
153c11c42c
commit
14a802417b
|
@ -44,7 +44,7 @@ class QRScanViewController: UIViewController {
|
||||||
previewLayer = AVCaptureVideoPreviewLayer(session: captureSession)
|
previewLayer = AVCaptureVideoPreviewLayer(session: captureSession)
|
||||||
previewLayer.frame = view.layer.bounds
|
previewLayer.frame = view.layer.bounds
|
||||||
previewLayer.videoGravity = .resizeAspectFill
|
previewLayer.videoGravity = .resizeAspectFill
|
||||||
view.layer.addSublayer(previewLayer)
|
view.layer.insertSublayer(previewLayer, at: 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
override func viewWillAppear(_ animated: Bool) {
|
override func viewWillAppear(_ animated: Bool) {
|
||||||
|
|
Loading…
Reference in New Issue