Skip to content

Conversation

@chris838
Copy link

@chris838 chris838 commented May 6, 2014

I've been playing around with linear damping as an alternative to the elastic tween timing functions. I have some code that is able to better mimic (I think) the iOS UIView spring animation:

https://developer.apple.com/library/ios/documentation/uikit/reference/uiview_class/uiview/uiview.html#//apple_ref/occ/clm/UIView/animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:

Currently it is not a really timing function since the duration parameter is ignored. If the duration could be incorporated then I think this would come very close to how Apple implements their function internally.

gillesguillemin and others added 27 commits October 16, 2012 19:23
(still a bit hackish though but at least now it doesn't mess up with the All Exceptions breakpoint)
Formatted code for better readability (at least for me)
+ added a removeAllTweenOperations
…entTrackingRunLoopMode completed, as when a UITableView or UIScrollView is scrolling. Added support for NSRunLoopCommonModes in calls to performSelector and with the NSTimer.
Conflicts:
	lib/PRTween.h
	lib/PRTween.m
Fix for removing all running ops
FIX: NSRunLoop issue where animations would not fire until after NSEvent...
…esguillemin-master

Conflicts:
	lib/PRTween.h
	lib/PRTween.m
	lib/PRTweenTimingFunctions.m
…can now detect if an operation was preempted using removeTweenOperation or removeAllTweenOperations.
Added finished BOOL parameter to operation completion handler
Updated example app to use new completion block type.
@rivera-ernesto
Copy link

Included in https://github.com/PRTween/PRTween.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants