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
feat(iOS): enable dampingRatio and springVelocity #10564
Conversation
Tests:
|
…m_mobile into TIMOB-18421 * 'TIMOB-18421' of https://github.com/Brianggalvez/titanium_mobile: chore(package): update lockfile package-lock.json fix(package): update temp to version 0.9.0 chore(package): update lockfile package-lock.json chore(package): update @seadub/danger-plugin-dependencies to version 0.1.0 refactor(android): add TiDimension constructor taking in units explicitly
@Brianggalvez Thanks for PR. Can you please fix the linting issue? |
I'm running |
@Brianggalvez Ideally it should work. I have fixed the listing issue. |
- name: dampingRatio | ||
summary: Damping ratio of spring. Use a value between 0 and 1. For a smoother deceleration use values closer to 1. | ||
type: Number, | ||
platforms: [iphone, ipad] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since: "8.1.0"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done! thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR passed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FR Passed: Able to see the ampingRatio
and springVelocity
being applied to an animation. Tested with the test case mentioned in the description
Test Environment
iPhone 6 Sim (12.1)
APPC CLI: 7.0.10-14
Operating System Name: Mac OS Mojave
Operating System Version: 10.14.2
Node.js Version: 8.9.1
Xcode 10.1
It looks like "springVelocity" is really a scale factor, correct? Would If this is true, then perhaps the property should be renamed to "springScale". I'm asking from a portability standpoint. I'll see about writing this feature up for Android and Windows once we've settled on the design. |
Hi Joshua, just prepared a little example on what springVelocity does. It's the view initial velocity so as high it is more bouncing the view does at the end. For Android you can find this useful: https://proandroiddev.com/spring-animation-in-android-de3d4197879b |
|
@vijaysingh-axway , I am not able to merge because it is asking for unit test. Can you please do the appropriate. |
JIRA: https://jira.appcelerator.org/browse/TIMOB-18421
added dampingRatio and springVelocity to allow iOS spring animations
example :