title: Access the presenting view controller from the presented view controller?
body: <p>I have a view controller (containing my menu) presented on top of another view controller (my application). </p>
  
  <p>I would need to access the presenting view controller (below my menu) from the presented view controller (my menu), for example to access some variables or make the presenting view controller perform one of its segues. </p>
  
  <p>However, I just can't figure out how to do it. 
  I'm aware of the "presentingViewController" and "presentedViewController" variables but I didn't manage to use them successfully.</p>
  
  <p>Any Idea ? </p>
  
  <p>Code (from the presented VC, which as a reference to the AppDelegate in which the window is referenced) : </p>
  
  <pre><code>if let presentingViewController = self.appDelegate.window?.rootViewController?.presentingViewController {
      presentingViewController.performSegue(withIdentifier: "nameOfMySegue", sender: self)
  }
  </code></pre>