title: Segue from tab view controller
body: <p>I am trying to segue from a tab view controller into a view controller. The segue is present modally. The code is below: </p>
  
  <pre><code>override func viewDidAppear(_ animated: Bool) {
      if (UserDefaults.standard.bool(forKey: "HasLaunchedOnce")) {
          print("LAnched B4")
          performSegue(withIdentifier: "Tutorial", sender: nil)
      } else {
          UserDefaults.standard.set(true, forKey: "HasLaunchedOnce")
          UserDefaults.standard.synchronize()
          performSegue(withIdentifier: "Tutorial", sender: nil)
      } 
  }
  </code></pre>
  
  <p>The problem I'm having is that there is no segue that happens, the first view controller on the tab bar is shown first. Is there a way to prioritise the segue? </p>