I have a problem with delaying computer\'s move in a game.
I\'ve found some solutions but they don\'t work in my case, e.g.
var delay = NSTimer.sched
In swift we can delay by using Dispatch_after.
Dispatch_after.
SWift 3.0 :-
DispatchQueue.main.asyncAfter(deadline: .now()+4.0) { alert.dismiss(animated: true, completion: nil) }