title: Cant pass value to another viewController?
body: <p>I have some text in tableview cells which you will tap on it you will pass the name of the cell and also you will be pushed to another view.</p>
  
  <pre><code>       override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
      tableView.deselectRow(at: indexPath as IndexPath, animated: true)
  
      let row = indexPath.row
      valueToPass = sections[row]
      print(valueToPass)
  }
  
  
  override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  
      if (segue.identifier == "fromWelcomeToSectionPage") {
          // initialize new view controller and cast it as your view controller
           let vc:sectionPage = segue.destination as! sectionPage
          vc.passedValue = valueToPass
  
      }
  }
  </code></pre>
  
  <p>also I created code in another controller to check</p>
  
  <pre><code>    if passedValue == "Základy" {
          print("it works")
      }
  </code></pre>
  
  <p>This is how I trying to pass it. Variable valueToPass is global variable. Idk but when I'm printing it in didSelectRowAtIndexPath it's okey but in prepare it's nil.<br>
  <strong>After tapping on cell I've got unexpectedly found nil while unwrapping an Optional value</strong></p>
  
  <p>That's how I created variable in another view </p>
  
  <pre><code>var passedValue = String()
  </code></pre>