I am using UIImagePickerController()
to display camera in my swift iOS app and let user take pictures. I would like to show a grid as overlay so I started implementing one as .cameraOverlayView
The problem is that the overlay image or views will spread over the black bars on top and bottom of the camera view. This is undesirable as the grid line will run over the camera button, cancel button etc.
I could not find a method to access the frame of the camera preview window to constraint the overlay just to that. What am I missing?