title: How does initial view controller work in swift?
body: <p>I've got the <code>MainViewController</code> which I set as initial <code>ViewController</code>. But in the <code>AppDelegate</code> I check if the user is logged (I check if there's some data saved) and if it's not, I set a new initial <code>ViewController</code> which is the <code>LoginViewController</code>.
  <code>BankVault</code> is what I use to save data, it's a class.</p>
  
  <pre><code> if !BankVault.load() {
  
          print("Bank not found!")
          self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
  
          let storyboard = UIStoryboard(name: "Main", bundle: nil)
          let initialViewController = storyboard.instantiateViewControllerWithIdentifier("tutorialPageViewController") as! TutorialViewController
  
          self.window?.rootViewController = initialViewController
          self.window?.makeKeyAndVisible()
      }
  </code></pre>
  
  <p>My question is: Does it load the first initial viewcontroller and then the LoginViewController or it load immediately the Loginviewcontroller?</p>