I get an unfilled UIImageView
with this error in Console
"Object images does not exist."
Here is the code:
// download image
let gsReference = Storage.storage().reference(forURL: "gs://myaddress.appspot.com/post-pics/")
let imageStorageRef = storageRef.child("images/")
imageStorageRef.getData(maxSize: 2 * 1024 * 1024) { data, error in
if let error = error {
print("******** \(error)")
} else {
let image = UIImage(data: data!)
}
}
Your Reference to the download is incorrect. Check your current StorageRef url path, or ImageStorageRef. Make sure its something like this: