title: How to dismiss 2 view controller in swift ios?
body: <p>How to dismiss 2 view controllers in Swift iOS?</p>
  
  <p>Below is my code.</p>
  
  <pre><code>@IBAction func backButtonTapped(sender: AnyObject) {
      self.presentingViewController
          .presentingViewController
          .dismissViewControllerAnimated(true, completion: nil)
  }
  </code></pre>