descartar dos controladores de vista a la vez Swift
if let first = presentingViewController,
let second = first.presentingViewController{
first.view.isHidden = true
second.dismiss(animated: true)
}
Mobile Star