iOS Swift - Networking
Consider the following Swift code snippet:
let url = URL(string: "https://example.com/image.jpg")!
URLSession.shared.dataTask(with: url) { data, response, error in
if let data = data, let image = UIImage(data: data) {
print("Image loaded successfully")
} else {
print("Failed to load image")
}
}.resume()
What will be printed if the image data is corrupted and cannot be converted to a UIImage?