Retrieve an image from Firebase to an UIimage swift5
问题 I'm struggling to download pictures from firebase storage to an UIImage in swift 5. I can well upload them. When I tried to retrieve picture, the UIImage display a black screen. here my function which return the UIImage import UIKit import Firebase func getImageEvent (imagePath : String) -> UIImage? { var myImage : UIImageView? //Access to the storage let storageRef = Storage.storage().reference(withPath: imagePath) storageRef.getData(maxSize: 1 * 1024 * 1024) {(data, error) in if let error =