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) }
}
Also in Swift:
- store bool value in nsuserdefaults swift
- convert string to int swift
- switch statements swift
- swift add horizontal line uiview programmatically
- how to screen record swift stackoverflow
- application tried to present a nil modal view controller on target
- UIFont.init bold
- guard let swift
- print things in swift
- swift wait 5 seconds
- verilog monitor
- swift how to add a completion block to a function
- swift how to make a variable
- set button programmatically swift
- swift thread.sleep
- how to change background color of stackview swift
- swift list
- Get the length of a String swift
- swift declare optional values
- swift remove tableview cell
- show alert swiftui
- get item filter count swift
- swift out of bound elelemnt
- swift change enum value