title: How to pass data from UITableView to UIViewController without segue
body: <p>I need to pass the title of Row in <code>UITableView</code> to my <code>ViewController</code>. I don't have VC in storyboard (I've created it by code). So I can't use segue. </p>
  
  <pre><code>func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  
     let cell = tableView.cellForRow(at: indexPath) as! UITableViewCell
  
  
      cell.textLabel?.textColor = UIColor(red: 0, green: 122/255, blue: 1, alpha: 1)
      cell.textLabel?.tintColor = UIColor(red: 0, green: 122/255, blue: 1, alpha: 1)
  
          var titleOfFood = String()
          if searching == true {
             titleOfFood = searchedFoods[indexPath.row].title
              cell.textLabel?.textColor = UIColor(red: 0, green: 122/255, blue: 1, alpha: 1)
               print(titleOfFood)
          } else {
              titleOfFood = foods[indexPath.row].title
              cell.textLabel?.textColor = UIColor(red: 0, green: 122/255, blue: 1, alpha: 1)
               print(titleOfFood)
          }
  
      let controller = EatenFoodViewController()
      let transitionDelegate = SPStorkTransitioningDelegate()
      controller.transitioningDelegate = transitionDelegate
      controller.modalPresentationStyle = .custom
      //controller.delegate = self
      transitionDelegate.customHeight = 620
      transitionDelegate.showIndicator = false
      self.present(controller, animated: true, completion: nil)
  }
  </code></pre>
  
  <p>I need to pass <code>titleOfFood</code> to <code>EatenFoodViewController</code></p>