iOS Swift - Networking
Identify the error in this Swift code for making an API call:
let url = URL(string: "https://api.example.com/data")
let task = URLSession.shared.dataTask(with: url!) { data, response, error in
print(data)
}
task.resume()
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions