title: Modally presented view controller dismisses by itself on touching the view in the upper side of the screen
body: <p>I have a view controller which has a table view and in the didSelectRowAt indexPath I instantiate the destination view controller, embed it into a navigation controller and present it... here is some code  </p>
  
  <pre><code>func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
          tableView.deselectRow(at: indexPath, animated: true)
  
          let destVC = DetailVC(frame: self.view.frame)
          //passing data to the destVC ...       
          destVC.modalTransitionStyle = .partialCurl
          let nav = UINavigationController(rootViewController: destVC)
          present(nav, animated: true, completion: nil)
      }
  </code></pre>
  
  <p>Working like a charm so far. When the detail VC appears everything's great, the tableView works perfectly, the leftBarButtonItem dismisses the detailVC as it should, but whenever I press anywhere on the upper side of the screen the detail view somehow automatically dismisses itself, which I don't want. I'm gonna leave a link to an image to see exactly what part of the screen automatically enables the dismiss function:<br>
  <a href="http://prntscr.com/kaibxg" rel="nofollow noreferrer">http://prntscr.com/kaibxg</a><br>
  I've been struggling with this and I didn't find any solution. I don't know why this is happening. When I use the pushViewController function, the detail VC is all right and is not popping itself out, but the thing is I really need to use the .partialCurl transition animation. I tried to find a way to somehow use .partialCurl when pushing the VC but I didn't find anything about that. Any help, answer, question is more than welcomed and appreciated. Thank you all in advance.</p>