Created
October 1, 2018 17:59
-
-
Save sagar-viradiya/fb6a925340cd650536bd7d182491f16a to your computer and use it in GitHub Desktop.
Extension for attaching SpringForce to SpringAnimation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline fun SpringAnimation.withSpringForceProperties(func: SpringForce.() -> Unit): SpringAnimation { | |
if (spring == null) { | |
spring = SpringForce() | |
} | |
spring.func() | |
return this | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment