This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Support key frame animations #53
Labels
Comments
Can you do this with -doAnimationCompleted:? |
Not really. There's no good way to run a |
In other words, something like: RAC(self.view.rcl_frame) = [[[RACSignal return:frame1] animateWithDuration:0.3] animateNext:^{
return [[RACSignal return:frame2] animateWithDuration:0.6];
}]; Where |
Maybe this should involve a tuple representation: RACSignal *frames = [RACSignal return:RACTuplePack(frame1, frame2)];
RAC(self.view.rcl_frame) = [frames animateKeyframesWithDurations:@[ @0.3, @0.6 ]]; The API is a bit more unwieldy (at least in terms of composability), but it's translatable to a single |
Ehh, that API's fairly gross but I don't have any better suggestions :\ |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It'd be nice if there were first-class support for key frame animations. I'm not totally sure what that would look like. Maybe an operator like
-sequenceNext:
but that completes when the animation completes? It'd be kinda dumb-guy keyframing but it'd work.The text was updated successfully, but these errors were encountered: