Open domhofmann opened 13 years ago
Basic support for this has been committed. There is still some more work to be done, but in general using the shorthand syntax for something that can be animated with Core Animation or UIView will fall back to one of those models.
For example: [PRTween tween:someView property:@"alpha" from:1 to:0 duration:2]
would use a UIView animation. I'm working on adding support to allow someone to turn this off on a case-by-case basis, but for now it can be turned off through the useBuiltInAnimationsWhenPossible
property on PRTween
(or [PRTween sharedInstance]
)
Additionally, fallbacks can be overridden on a case-by-case basis like this:
[PRTween tween:someView property:@"alpha" from:1 to:0 duration:2].override = YES;
There's some remaining work on this ticket before we have full coverage on all built in animations, but the existing code base covers most basic cases now.
This is starting to look like a pretty good drop-in replacement for all animations with the introduction of shorthands. I think it would be valuable to add a way to fall back to Core Animation or UIView animation, while still using the syntax here.