mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-23 00:40:59 +00:00
Fix camera photo upload
This commit is contained in:
parent
477dd520b9
commit
9ba18a8ca3
2 changed files with 2 additions and 0 deletions
|
@ -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 a new issue