Fix camera photo upload

This commit is contained in:
Thomas Ricouard 2023-04-03 14:17:55 +02:00
parent 477dd520b9
commit 9ba18a8ca3
2 changed files with 2 additions and 0 deletions

View file

@ -22,6 +22,7 @@ struct StatusEditorCameraPickerView: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> UIImagePickerController {
let imagePicker = UIImagePickerController()
imagePicker.sourceType = .camera
imagePicker.delegate = context.coordinator
return imagePicker
}

View file

@ -378,6 +378,7 @@ public class StatusEditorViewModel: NSObject, ObservableObject {
gifTransferable: nil,
mediaAttachment: nil,
error: nil))
processMediasToUpload()
}
private func processItemsProvider(items: [NSItemProvider]) {