I have been trying my darndest to try to understand how to display an image that is stored in firebase. I am wanting just the basic knowledge, with just simple code that works that I can run with. There are tutorials out there that do more than just display an image data from Firebase Storage and I find it distracting. All I want is one image displaying in one scene from firebase and I can expand on that.
I’ve been studying this, and I feel like I’m almost getting it but I keep getting errors like, I can’t use a UIImage with a string…The is from Firebase Docs. Please help:
// Points to the root reference let storageRef = Storage.storage().reference() // Points to "images" let imagesRef = storageRef.child("images") // Points to "images/space.jpg" // Note that you can use variables to create child values let fileName = "space.jpg" let spaceRef = imagesRef.child(fileName) // File path is "images/space.jpg" let path = spaceRef.fullPath // File name is "space.jpg" let name = spaceRef.name // Points to "images" let images = spaceRef.parent()