IFTTT / RazzleDazzle

A simple keyframe-based animation framework for iOS, written in Swift. Perfect for scrolling app intros.
http://ifttt.github.io
MIT License
3.36k stars 293 forks source link

nice work man! what does this line mean XD #2

Closed zzz6519003 closed 9 years ago

zzz6519003 commented 9 years ago

:beer:

    public var animations = [Animatable]()
lauraskelton commented 9 years ago

Thanks! That's just creating an array that can hold anything that conforms to the Animatable protocol. That means it's something we can call animate(time) on. Basically, it's an array that can hold any type of animation that will be animated together.

zzz6519003 commented 9 years ago

thx! so this part [Animatable] means somthing conforms to protocol!

and () create the array?