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