title: How do I add am image in a TableView from URL
body: <p>I am confused about how I can take the DownloadURL which is a link and turn it into an image and add it in my tableview cell? I have an imageview in my storyboard and dont know how to connect it to the tableview cell either. Thanks!</p>
  
  <pre><code>override func viewDidLoad() { super.viewDidLoad()
  
      let ref = FIRDatabase.database().reference().child("Posts")
  
      ref.observeSingleEvent(of: .value, with: { snapshot in
  
          print(snapshot.childrenCount)
  
          for rest in snapshot.children.allObjects as! [FIRDataSnapshot] {
  
              guard let value = rest.value as? Dictionary&lt;String,Any&gt; else { continue }
  
              guard let  downloadURL = value["DownloadURL"] as? String else { continue }
  
              let post = postStruct(title: title, date: date, author: author, article: article, downloadURL: downloadURL)
  
              self.posts.append(post)
  
          }
  
          self.posts = self.posts.reversed(); self.tableView.reloadData()
  
      })
  
  }
  
  override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
  
      return posts.count
  }
  
  override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
  
      let cell = tableView.dequeueReusableCell(withIdentifier: "cell")
  
      let label1 = cell?.viewWithTag(1) as! UILabel
      label1.text = posts[indexPath.row].title
      return cell!
  }
  </code></pre>