swift 5 delay dismiss view controller code example
Example: swift 5 delay dismiss view controller
let timer = 1
DispatchQueue.main.asyncAfter(deadline: .now() + timer) {
// code to execute after 1 second
}
let timer = 1
DispatchQueue.main.asyncAfter(deadline: .now() + timer) {
// code to execute after 1 second
}