title: Why is my data not showing up in my TableView?
body: <p>The data that I am retrieving from Firebase is not showing up in my table view, but it is showing up in my snapshot. What am I missing?</p>
  <p>Here is my code:</p>
  <pre><code>import UIKit
  import Firebase
  import FirebaseDatabase
  
  
  
  class NewConversationViewController: UITableViewController {
      
      var users = [User]()
      
      let cellId = &quot;cellId&quot;
      
      override func viewDidLoad() {
          super.viewDidLoad()
          view.backgroundColor = .white
          
          self.tableView.register(UITableViewCell.self, forCellReuseIdentifier: &quot;cell&quot;)
          
          navigationController?.navigationBar.setBackgroundImage(UIImage(), for: .default)
          navigationController?.navigationBar.shadowImage = UIImage()
          
          tableView.delegate = self
          tableView.dataSource = self
          
          fetchUser()
          
          tableView.isHidden = false
          
          
      }
      
      func fetchUser() {
          
          Database.database().reference().child(&quot;users&quot;).observeSingleEvent(of: .value, with: { snapshot in
              
              if let dictionary = snapshot.value as? [String: AnyObject] {
                  let user = User()
                  user.setValuesForKeys(dictionary)
                  self.users.append(user)
              }
              
              print(snapshot)
              
             DispatchQueue.main.async {
               self.tableView.reloadData()
             }
             
          }, withCancel: nil)
          
          
          
      }
      
      
      override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return users.count
      }
      
      override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          
          let cell = tableView.dequeueReusableCell(withIdentifier: &quot;cell&quot;, for: indexPath)
          
          let user = users[indexPath.section]
          cell.textLabel?.text = user.name
          
          
  
          return cell
      }
      
      
      
      
  
  }
  
  </code></pre>