self.presentingViewController?.presentingViewController?.dismiss(animated: true, completion: nil)
if let first = presentingViewController, let second = first.presentingViewController{ first.view.isHidden = true second.dismiss(animated: true) }