Answers for "swift dismiss view controller"

1

dismiss two view controllers at once swift

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

swift close view

dismiss(self)
Posted by: Guest on December-23-2020
0

how to dismiss a view when touch up inside swift

override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)
    {
        let touch = touches.first
        if touch?.view != self.yourView
        { self.dismiss(animated: true, completion: nil) }
    }
Posted by: Guest on January-11-2021

Code answers related to "swift dismiss view controller"

Code answers related to "Swift"

Browse Popular Code Answers by Language