I\'ve gone through the iBook from Apple, and couldn\'t find any definition of it:
Can someone explain the structure of dispatch_after?
dispatch_after
d
In Swift 4
Use this snippet:
let delayInSec = 1.0 DispatchQueue.main.asyncAfter(deadline: .now() + delayInSec) { // code here print("It works") }