title: How to segue multiple view controllers programmatically using swift 3.0
body: <p>I'm getting an error:</p>
  
  <blockquote>
    <p>has no segue with identifier 'dest1''</p>
  </blockquote>
  
  <p>and what I did was:</p>
  
  <ul>
  <li>route(ctrl+drag) in storyboard  viewcontroller -> dest1, viewcontroller -> dest2 </li>
  <li>have an action button in viewController.swift</li>
  <li><p>set storyboard ids to "dest1" and "dest2"</p>
  
  <pre><code>@IBAction func Parameters(_ sender: AnyObject) {
      self.performSegue(withIdentifier: "dest1", sender: nil)
  }
  </code></pre></li>
  <li><p>Prepare for segue</p>
  
  <pre><code>override func prepare(for segue: UIStoryboardSegue, sender: Any?)  {
      print("0")
      if segue.identifier == "dest1" {
          if let svc = segue.destination as? secondViewController {
              print("1")
          }
      } else if segue.identifier == "dest2" {
          if let svc = segue.destination as? reverbViewController {
              print("2")
          }
      }
  </code></pre></li>
  </ul>
  
  <p>What am I missing?</p>