mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fix #4420 - Configure the video camera picker to record in high quality - [UIImagePickerController.QualityType.typeHigh](https://developer.apple.com/documentation/uikit/uiimagepickercontroller/qualitytype)
This commit is contained in:
committed by
Stefan Ceriu
parent
31fc67d0e1
commit
ea8ff3603b
@@ -34,6 +34,7 @@ struct CameraPicker: UIViewControllerRepresentable {
|
|||||||
imagePicker.sourceType = .camera
|
imagePicker.sourceType = .camera
|
||||||
imagePicker.allowsEditing = false
|
imagePicker.allowsEditing = false
|
||||||
imagePicker.delegate = context.coordinator
|
imagePicker.delegate = context.coordinator
|
||||||
|
imagePicker.videoQuality = .typeHigh
|
||||||
|
|
||||||
if let mediaTypes = UIImagePickerController.availableMediaTypes(for: .camera) {
|
if let mediaTypes = UIImagePickerController.availableMediaTypes(for: .camera) {
|
||||||
imagePicker.mediaTypes = mediaTypes
|
imagePicker.mediaTypes = mediaTypes
|
||||||
|
|||||||
Reference in New Issue
Block a user