suguru / Cheetah

Easy animation library on iOS with Swift2
MIT License
589 stars 47 forks source link

closure? #5

Open RaphArbuz opened 8 years ago

RaphArbuz commented 8 years ago

Hi,

I love Cheetah and was wondering if there was a way to execute code right after an animation has finished?

Many thanks

Raphael

icanswiftabit commented 8 years ago

I'm not sure when you did post this but now Cheetah type have completion() method. I believe that is what you looking for.

craigpearce5 commented 8 years ago

@RaphArbuz

image.cheetah
    .move(100,0)
    .run()
.completion {
         //do something
}
martnst commented 7 years ago

would be nice if this was added to the readme docs