Question : swift + time delay call main thread
Answered by : thee-thee-fire-fire
DispatchQueue.main.asyncAfter(deadline: .now() + 1) { //Your code
}
Source : https://stackoverflow.com/questions/44838535/how-can-i-call-a-function-after-a-time-delay-in-the-main-thread-in-swift-3 | Last Update : Sat, 16 May 20