Answers for "delay 3 seconds swift"

0

delay code execution swift 5

let timer = 1

DispatchQueue.main.asyncAfter(deadline: .now() + timer) {
    // code to execute after 1 second
}
Posted by: Guest on April-22-2021
1

swift wait 5 seconds

sleep(5). // Argument is number of seconds
Posted by: Guest on October-12-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language