so i have this code here
let url = URL(string: APILink)!
let task = URLSession.shared.dataTask(with: url) {(data, response, error) in
guard let data = data else { return }
let response = String(data: data, encoding: .utf8)!
print(response)
}
task.resume()
}
i was wondering how i could make response
here public to other functions?
using the public
keyword when declaring response
doesnt work (of course)