title: Get ViewController from Appdelegate
body: <p>I have four views in my storyboard</p>
  
  <ol>
  <li>ViewOne</li>
  <li>ViewTwo</li>
  <li>ViewThree</li>
  <li>ViewFour</li>
  </ol>
  
  <p>In my <code>ViewTwo</code>, I make a call and open an new App and when the URL opening is done I call the following function in my <code>Appdelegate</code></p>
  
  <pre><code>func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -&gt; Bool
  </code></pre>
  
  <p>What I do here is that I iterate through all my viewControllers because I want to find my <code>ViewTwo</code> to be able to call a segue that I have created. I want to do it this way because I don´t want to create a new instance of the viewController.</p>
  
  <p>It works great with this function below to find <code>ViewTwo</code>:</p>
  
  <pre><code>if let viewControllers = window?.rootViewController?.childViewControllers {
      for viewController in viewControllers {
          if viewController.isKindOfClass(ViewTwo) {
              viewController.performSegueWithIdentifier("sw", sender: self)
          }
      }
  }
  </code></pre>
  
  <p>But now I have added a <code>NavigationController</code> to <code>ViewTwo</code>, <code>ViewThree</code> and <code>ViewFour</code> so when I run the snippet above I only get the following result for viewController (I made a simple <code>print(viewController)</code>)</p>
  
  <pre><code>&lt;ViewOne: 0x...&gt;
  &lt;UINavigationController: 0x...&gt;
  &lt;UINavigationController: 0x...&gt;
  &lt;UINavigationController: 0x...&gt;
  </code></pre>
  
  <p><strong>So my question is, how do I check for ViewTwo now that I also have a NavigationController?</strong></p>