We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to animate views like UIButton when touching it.
UIButton
For instance a scale when touching and an unscale when releasing.
We could override UIResponder functions touchesBegan, touchesMoved, touchesEnded, touchesCancelled or maybe register to UIControlEvents
UIResponder
touchesBegan
touchesMoved
touchesEnded
touchesCancelled
UIControlEvents
UIView.animate(withDuration: duration, delay: delay, options: .curveEaseIn, animations: {() -> Void in view.transform = CGAffineTransform(scaleX: 0.85, y: 0.85) view.alpha = 0.7 }, completion: nil )
UIView.animate(withDuration: configuration.duration, delay: configuration.delay, options: .curveEaseIn, animations: {() -> Void in view.transform = CGAffineTransform(scaleX: 1.0, y: 1.0) view.alpha = 1 }, completion: nil )
AnimationType
The text was updated successfully, but these errors were encountered:
Looking forward to this! That will be an awesome feature 👍
Sorry, something went wrong.
Another idea of animation: https://github.com/BalestraPatrick/SquishButton
phimage
No branches or pull requests
I want to animate views like
UIButton
when touching it.For instance a scale when touching and an unscale when releasing.
Where to do it
We could override
UIResponder
functionstouchesBegan
,touchesMoved
,touchesEnded
,touchesCancelled
or maybe register toUIControlEvents
An animation example
In touch Begin
In touch End or Cancel
some conception idea
AnimationType
The text was updated successfully, but these errors were encountered: