Created
December 6, 2016 02:28
-
-
Save rchatham/8f62a1681c4b23e75f301f7eceea01f4 to your computer and use it in GitHub Desktop.
Queueing animations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typealias Animation = (TimeInterval, ()->Void) | |
let animation: Animation = (5.0, { | |
// Code to animate | |
}) | |
let animations = Queue<Animation>() | |
animations.enqueue(animation) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment