title: Storyboard or segue from ViewController to Tabbar Controller
body: <p>I want to implement a segue / storyboard in a button FROM View Controller TO tab bar controller (Home) in swift 3</p>
  
  <p><a href="https://i.stack.imgur.com/Sym5Q.png" rel="nofollow noreferrer">My storyboard</a></p>
  
  <p>This is my sign in code</p>
  
  <pre><code>@IBAction func LogIn(_ sender: Any) {
      if self.emailTextfield.text == "" || self.passwordTextfield.text == "" {  
          let alertController = UIAlertController(title: "Error", message: "Please enter an email and password.", preferredStyle: .alert) 
          let defaultAction = UIAlertAction(title: "OK", style: .cancel, handler: nil)
          alertController.addAction(defaultAction)
          self.present(alertController, animated: true, completion: nil)
      } else {
          FIRAuth.auth()?.signIn(withEmail: self.emailTextfield.text!, password: self.passwordTextfield.text!) { (user, error) in
              if error == nil {
                  print("You have successfully logged in")
                  //this is my  storyboard but it gives me black screen
                  let vc = self.storyboard?.instantiateViewController(withIdentifier: "Home")
                  self.present(vc!, animated: true, completion: nil) 
              } else {
                  let alertController = UIAlertController(title: "Error", message: error?.localizedDescription, preferredStyle: .alert)
                  let defaultAction = UIAlertAction(title: "OK", style: .cancel, handler: nil)
                  alertController.addAction(defaultAction)
  
                  self.present(alertController, animated: true, completion: nil)
              }
          }
      }
  
  }
  </code></pre>
  
  <p>I tried using storyboard</p>
  
  <pre><code>    let vc = self.storyboard?.instantiateViewController(withIdentifier: "Home")
                  self.present(vc!, animated: true, completion: nil)
  </code></pre>
  
  <p>i tried using segue</p>
  
  <pre><code>self.performSegue(withIdentifier: "Home", sender: self)
  </code></pre>
  
  <p>both gives me black screen. why? I have a clarification also. where should i connect my segue, is it in the tab bar controller(grey) or to the first TAB controller?</p>