Skip to content

Instantly share code, notes, and snippets.

@rchatham
Created December 6, 2016 02:28
Show Gist options
  • Save rchatham/8f62a1681c4b23e75f301f7eceea01f4 to your computer and use it in GitHub Desktop.
Save rchatham/8f62a1681c4b23e75f301f7eceea01f4 to your computer and use it in GitHub Desktop.
Queueing animations
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