title: How to fill UITableView with a data from Dictionary. Swift
body: <p>Please help me with filling table view cells with data from a dictionary. For instance, I have cell like so:</p>
  
  <p><a href="https://i.stack.imgur.com/nlLKt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nlLKt.png" alt="enter image description here"></a></p>
  
  <p>and for filling it with data I've started with overriding <code>cellForRowAt</code> method:</p>
  
  <pre><code>    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCell(withIdentifier: "CurrencyCell", for: indexPath) as! CurrencyCell
  
      for (key, value) in currencies! {
          print("key is - \(key) and value is - \(value)")
      }
  
      // ?
  
      // cell.currencyLabel.text =
      // cell.askLabel.text =
      // cell.bidLabel.text =
  
      return cell
  }
  </code></pre>
  
  <p>Printout of Dictionary here: </p>
  
  <pre><code>key is - EUR and value is - Rate(ask: Optional("30.8500"), bid: Optional("30.1000"))
  key is - USD and value is - Rate(ask: Optional("26.3000"), bid: Optional("26.0500"))
  key is - RUB and value is - Rate(ask: Optional("0.4150"), bid: Optional("0.3750"))
  </code></pre>
  
  <p>How to do this? Thanks in advance!</p>