title: Passing Data Between View Controllers in Swift 4
body: <p>I've got a login page on the main <code>View Controller</code> which passes a <code>"verified"</code> string to <code>EslViewController</code>, this, I can get to work, but it's now when I want to pass this <code>"verified"</code> to <code>IP_ModuleViewController</code> that I'm having issues with...
  the code at the moment is;</p>
  
  <pre><code>@IBAction func backButton(_ sender: Any) {
      if installer == "verified"{
          performSegue(withIdentifier: "main/login", sender: self)
      }
          func prepare(for segue: UIStoryboardSegue, sender: Any?){
              let mainController = segue.destination as! ViewController
              mainController.myvar = installer
      }
  }
  
  @IBAction func button1(_ sender: Any) {
      if installer == "verified"{
          performSegue(withIdentifier: "Button1", sender: self)
      }
      func prepare(for segue: UIStoryboardSegue, sender: Any?){
          let IPController = segue.destination as! IP_ModuleQuickStartViewController
          IPController.verified = installer
      }
  }
  </code></pre>
  
  <p>Now, my problem is that the <code>func prepare(for segue: UIStoryboardSegue, sender: Any?)</code> isn't running, I realize that this is because it's not an Override Func (I think), but if I have the override func instead I can only see that you can pass data from one? so the second IBAction (button 1) won't work because the Override Func for the back button which goes to <code>ViewController</code> also runs when it's meant to be going to <code>IPcontroller</code>, Any ideas?</p>