The following code snippet works perfectly when called outside a completion block, but the timer is never fired when I set it up inside the block. I don\'t understand why th
This may sound obvious, but I had a similar problem, the timer just wouldn't fire and the reason is that it wasn't in the main thread...No errors, just never fired.
Put in the main thread and at least you have a shot at it!
DispatchQueue.main.async {
//insert your timer here
}