Hi all,
Not much this week except this
Superb article from Matt Gallagher that explains a lot on long compile time in swift.
Happy reading !
MAB
Hi all,
Not much this week except this
Superb article from Matt Gallagher that explains a lot on long compile time in swift.
Happy reading !
MAB
Just because I can never remember the correct syntax for a dispatch_after I made this very simple wrapping function that I want to share with you.
1 2 3 4 5 6 7 |
func dispatch_after(delay:NSTimeInterval, block:()->Void) { let delayTime = dispatch_time(DISPATCH_TIME_NOW, Int64(delay * Double(NSEC_PER_SEC))) dispatch_after(delayTime, dispatch_get_main_queue(), block) } |
I feel like it should have always been this way …