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