title: How to load image from server to tableView cell in swift 3?
body: <p>I am trying to load news into the tableView and I did it. How do I load an image to the tableView cell next to the title?</p>
  
  <p>I want the image to be loaded at the left side of the title.</p>
  
  <p>host:
          <a href="https://api.sis.kemoke.net/news" rel="nofollow noreferrer">https://api.sis.kemoke.net/news</a></p>
  
  <p>image URL variable: imgUrl</p>
  
  <p>Here is my class:</p>
  
  <pre><code>import Alamofire //Framework for handling http requests
  import UIKit 
  
  /*A class which will process http requests, receive the news as string and fill the array with such data which will be displayed in a table*/
  class NewsTableViewController: UITableViewController {
      //Custom struct for the data
      struct News {
          let title : String
          let text : String
          let link : String
  
          init(dictionary: [String:String]) {
              self.title = dictionary["title"] ?? ""
              self.text = dictionary["text"] ?? ""
              self.link = dictionary["link"] ?? ""
          }
      }
  
      //Array which holds the news
      var newsData = [News]()
  
      // Download the news
      func downloadData() {
          Alamofire.request("https://api.sis.kemoke.net/news").responseJSON { response in
              print(response.request)  // original URL request
              print(response.response) // HTTP URL response
              print(response.data)     // server data
              print(response.result)   // result of response serialization
  
              //Optional binding to handle exceptions
              self.newsData.removeAll() // clean the data source array
              if let json = response.result.value as? [[String:String]] {
                  for news in json {
                      self.newsData.append(News(dictionary: news))
                  }
                  self.tableView.reloadData()
              }
          }
      }
  
      override func viewDidLoad() {
          super.viewDidLoad()
          downloadData()
      }
  
      override func numberOfSections(in tableView: UITableView) -&gt; Int {
          return 1
      }
  
      override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return newsData.count
      }
  
      override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
          let news = newsData[indexPath.row]
          cell.textLabel?.text = news.title
          return cell
      }
  }
  </code></pre>