title: How to present new ViewController and dismiss the current from memory
body: <p>How to present new ViewController and dismiss the current from memory </p>
  
  <pre><code> var presentingViewController :UIViewController! = self.presentingViewController;
  
      self.dismissViewControllerAnimated(false) {
          // go back to MainMenuView as the eyes of the user
          presentingViewController.dismissViewControllerAnimated(false, completion: nil)
  
      }
  </code></pre>
  
  <p>this is ok but I want to present before dismiss to can show loading indicator </p>
  
  <pre><code>let loadingNotification = MBProgressHUD.showHUDAddedTo(self.view, animated: true)
      loadingNotification.labelText = "Retrieving Data"
  </code></pre>