-
Notifications
You must be signed in to change notification settings - Fork 780
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
Support animations with timing functions #12
Comments
How about adding in Animatable /**
Animation force (default value should be CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut))
*/
var timingFunction: CAMediaTimingFunction { get set } and to Animatable classes something like that @IBInspectable open var _timingFunction: String = kCAMediaTimingFunctionEaseInEaseOut {
didSet {
timingFunction = CAMediaTimingFunction(name: _timingFunction)
}
}
open var timingFunction: CAMediaTimingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut) and in AnimationConfiguration let timingFunction: CAMediaTimingFunction Instead of |
@phimage Thanks for posting your idea. This is a useful feature. In one of my app, I slide a panel up and down. And I should use
|
I will make the first move today I will add #12 to where I have questions |
branch feature/timingfunction See all #12 in code for the question and work to do |
@phimage great start 👍 Do you think we can create a PR like I think in If |
PR #456 has been created |
…nction Revert "Support timing function for animation. Fix #12" #no-public-changes
Currently, all animations are Spring animations, can support Easing animations as well.
The text was updated successfully, but these errors were encountered: