mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-26 20:45:03 +01:00
Fix camera photo upload
This commit is contained in:
parent
477dd520b9
commit
9ba18a8ca3
@ -22,6 +22,7 @@ struct StatusEditorCameraPickerView: UIViewControllerRepresentable {
|
||||
func makeUIViewController(context: Context) -> UIImagePickerController {
|
||||
let imagePicker = UIImagePickerController()
|
||||
imagePicker.sourceType = .camera
|
||||
imagePicker.delegate = context.coordinator
|
||||
return imagePicker
|
||||
}
|
||||
|
||||
|
@ -378,6 +378,7 @@ public class StatusEditorViewModel: NSObject, ObservableObject {
|
||||
gifTransferable: nil,
|
||||
mediaAttachment: nil,
|
||||
error: nil))
|
||||
processMediasToUpload()
|
||||
}
|
||||
|
||||
private func processItemsProvider(items: [NSItemProvider]) {
|
||||
|
Loading…
Reference in New Issue
Block a user