Answers for "swift 5 run code after delay"

1

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

Code answers related to "Swift"

Browse Popular Code Answers by Language