I have a UIViewController based on this code, which correctly shows the camera preview when that controller is pushed by the navigation controller.
For example, this works perfectly - everything displays correctly
viewController?.navigationController?.pushViewController(qrScannerViewController!, animated: true)
But this functionality truly is modal, it shouldn't be navigation, but rather a modal pop-up, for the user to accomplish one specific task.
So I try the following, and everything looks great - apart from no camera preview!
viewController?.present(qrScannerViewController!, animated: true)
The camera is still working, it can still capture QR codes - but I can't see anything..
What is the difference?
What am I doing wrong?
How can I fix this stupid issue?