title: ImageView must be used from main thread only
body: <p>I am getting a url from my firebase database to be download images and am getting this error on the cell.articleImage.image = UIImage(data: data) in the main thread, It is not crashing but it won't return the images, anyone know what could be going wrong?</p>
  
  <pre><code>override func viewDidLoad() {
          super.viewDidLoad()
          tableView.delegate = self
          tableView.dataSource = self
          DispatchQueue.global().async {
              let v = UIView(frame: .zero)
          }
  
      }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          guard let cell = tableView.dequeueReusableCell(withIdentifier: "articleCell") as? articlesCell else {
              return UITableViewCell()}
  
          let article = articleArray[indexPath.row]
  
          let url = URL(string: article.imageURL)!
          DispatchQueue.global().async {
              do{
                  let data = try Data(contentsOf: url)
                  DispatchQueue.global().sync {
                      cell.articleImage.image = UIImage(data: data)
                  }
              } catch {
  
              }
          }
  
  
  
         // cell.articleImage.sd_setImage(with: url, placeholderImage: UIImage(named: "issaimage"))
          cell.configureCell(title: article.ArticleTitle, author: article.author, date: article.date)
  
          return cell
      }
  </code></pre>