title: Getting an error when trying to download an image
body: <p>I am trying to download an image using the following code:</p>
  
  <pre><code> if let imageUrl = post.postImageURL{
          let url = NSURL(string: imageUrl)
          URLSession.shared.dataTask(with: url!, completionHandler: {(data, response, error) in
              if error != nil{
                  print(error)
                  return
              }
              DispatchQueue.main.async {
                  cell.itemImage.image = UIImage(data: data)
              }
  
          }).resume()
      }
  </code></pre>
  
  <p>When I try to build it, I get the following error message:</p>
  
  <pre><code>Ambiguous reference to member 'dataTask(with:completionHandler:)'
  </code></pre>
  
  <p>How can I fix this error?</p>
  
  <p>Thanks in advance!</p>