Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Core Animation / UIView fallbacks #7

Open
domhofmann opened this issue Sep 6, 2011 · 3 comments
Open

Add Core Animation / UIView fallbacks #7

domhofmann opened this issue Sep 6, 2011 · 3 comments

Comments

@domhofmann
Copy link
Owner

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.

@domhofmann
Copy link
Owner Author

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])

@domhofmann
Copy link
Owner Author

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;

@domhofmann
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant