called a function after some time in swift code example
Example: called a function after some time in swift
DispatchQueue.main.asyncAfter(deadline: .now() + 10.0) {
//call any function
}
DispatchQueue.main.asyncAfter(deadline: .now() + 10.0) {
//call any function
}