Answers for "how to dismiss a view when touch up inside swift"

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 "how to dismiss a view when touch up inside swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language