title: MFMailComposeViewController() not dismissed inside UIAlertAction
body: <p>I have MFMailComposeViewController opening up inside UIAlertController and the code looks like this:</p>
  <pre><code>import StoreKit
  import MessageUI
  
  class SettingsListViewController: UIViewController, MFMailComposeViewControllerDelegate, UINavigationControllerDelegate {
  // Some code adding the UITableView and etc
  // ...
  }
  
  private extension SettingsListViewController {
      
      func didSelectShareCell(shareSectionCell: ShareSectionCell, _ tableView: UITableView, cellForRowAt indexPath: IndexPath) {
          switch shareSectionCell {
          // Some other cases...
          case .rate:
              let actionSheet = UIAlertController(title: &quot;Feedback&quot;, message: &quot;Are you enjoing the app?&quot;, preferredStyle: .alert)
              
              actionSheet.addAction(UIAlertAction(title: &quot;Dismiss&quot;, style: .cancel, handler: nil))
              
              actionSheet.addAction(UIAlertAction(title: &quot;Yes, i love it&quot;, style: .default, handler: { action in
                  SKStoreReviewController.requestReview()
              }))
              
              actionSheet.addAction(UIAlertAction(title: &quot;No, this sucks&quot;, style: .default, handler: { action in
                  guard MFMailComposeViewController.canSendMail() else {
                      // Alert info user
                      return
                  }
                  
                  let composer = MFMailComposeViewController()
                  composer.mailComposeDelegate = self
                  composer.delegate = self
                  composer.setToRecipients([&quot;my mail&quot;])
                  composer.setSubject(&quot;i'm mad&quot;)
                  composer.setMessageBody(&quot;Hey, i love your app but...&quot;, isHTML: false)
                  
                  self.present(composer, animated: true)
                  
                  func mailComposeController(_ controller: MFMailComposeViewController,
                                             didFinishWith result: MFMailComposeResult, error: Error?) {
                      self.dismiss(animated: true)
                  }
                           
              }))
              
              present(actionSheet, animated: true)
              
          }
      }  
  }
  
  
  </code></pre>
  <p>Everything works fine. Send mail window opens up, the mail being sent too and stuff but when it comes to pressing 'cancel' &amp; 'send' buttons MFMailComposeViewController() isn't dismissed (have to swipe it down in order to dismiss it)</p>
  <p>What can be wrong?</p>