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.