UIImagePickerController presentation

I'd like to present a UIImagePickerController from my main MSMessagesAppViewController class.


Code:


let imagePickerController = UIImagePickerController()
imagePickerController.sourceType = .camera
imagePickerController.allowsEditing = false
imagePickerController.delegate = self;
self.present(imagePickerController, animated: true, completion: nil)
requestPresentationStyle(.expanded)



The issue is that the camera controls to cancel or reverse are hidden under the text bar. Furthermore, after taking the photo, the Use Photo button is also hidden, so I can't exit out of the picker.

Replies

Were you able to find a resolution to this issue? I have been having the same issue with the iMessage container overlapping on top of the camera settings screen. Any help is highly appreciated.