Hey I am trying to retrieve the user image saved in the firebase storage but I am using this storage path (the folder of profile pictures in firebase) as a string(child path) to update the user image. When the user profile updates there are no errors this code just didn't update the user image as I expected what am I missing here that will allow me to successfully my user image and solve my problem ?
var spaceRef = Storage.storage().reference()
let storagePath = "gs://tunnel-vision-bc055.appspot.com/images/space.jpg"
spaceRef = Storage.storage().reference(forURL: storagePath)
let reference = spaceRef.child("profilePic")
// UIImageView in your ViewController
let imageView: UIImageView = self.ProfileImage
// Placeholder image
let placeholderImage = UIImage(named: "image/jpeg")
// Load the image using SDWebImage
imageView.sd_setImage(with: reference, placeholderImage: placeholderImage)
// Uh-oh, an error occurred!
return
}