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:
parent
f993c3172e
commit
74ad02132a
|
@ -48,7 +48,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