I have checked that my code is identical to the current download project. However, when I click the camera icon, the screen turns black, and the camera view controller slides in from the left as expected.
When i click on the dismiss icon, both view controllers behave as expected.
As of ios 13, I must add an additional line of code when presenting the CameraController
let cameraController = CameraController()
cameraController.modalPresentationStyle = .fullScreen <---- This line is required to prevent to view being displayed as a Page Sheet
I believe this is causing my problem, as the Apple docs state that .fullScreen removes the presenting views.
I'm not sure what the best approach is to solving this. Any help/advise would be appreciated. Thank You