Answers for "how to dismiss presented view controller in swift 5"

1

dismiss two view controllers at once swift

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

     }
Posted by: Guest on February-06-2020
1

dismiss two view controllers at once swift

self.presentingViewController?.presentingViewController?.dismiss(animated: true, completion: nil)
Posted by: Guest on February-06-2020

Code answers related to "how to dismiss presented view controller in swift 5"

Code answers related to "Swift"

Browse Popular Code Answers by Language