I upload multiple images to firebase storage but can not assign their urls to array in view model
here is my code. I have multiple selected images, for each image first I upload it to Firebase Storage and trying ti fetch that url. When I debug it I can print url string but it can not be appended to @Published photoUrls array and I can not send it to Firestore database. I think problem is about handling async but can’t figure it out after downloaded url.
I upload multiple images to firebase storage but can not assign their urls to array in view model
here is my code. I have multiple selected images, for each image first I upload it to Firebase Storage and trying ti fetch that url. When I debug it I can print url string but it can not be appended to @Published photoUrls array and I can not send it to Firestore database. I think problem is about handling async but can’t figure it out after downloaded url.
I upload multiple images to firebase storage but can not assign their urls to array in view model
here is my code. I have multiple selected images, for each image first I upload it to Firebase Storage and trying ti fetch that url. When I debug it I can print url string but it can not be appended to @Published photoUrls array and I can not send it to Firestore database. I think problem is about handling async but can’t figure it out after downloaded url.
I upload multiple images to firebase storage but can not assign their urls to array in view model
here is my code. I have multiple selected images, for each image first I upload it to Firebase Storage and trying ti fetch that url. When I debug it I can print url string but it can not be appended to @Published photoUrls array and I can not send it to Firestore database. I think problem is about handling async but can’t figure it out after downloaded url.