I have been messing around in the beta versions of...
# compose-android
l
I have been messing around in the beta versions of Compose Foundations and we now need to provide
AnchoredDraggableState
a
decayAnimationSpec
. I have tried a few specs for this, but they have given me very strange and buggy results. Any advice on how to achieve parody with the old implementation where we weren’t required to provide these?
The
DecayAnimationSpec
is very strange. The docs don’t point me to any provided set of implementations. I found this
rememberSplineBasedDecay<Float>()
by searching through a Chris Banes repo. It is pretty clear to me that this is the source of fairly serious UI jank. Based on all my testing, I understand what it this parameter does, but it difficult to tell from the documentation what this parameter is actually doing: > The animation spec that will be used when flinging with a large enough velocity to reach or cross the target state. It is crossing the target state? Ultimately, I am not sure I really want to control this, and I am experiencing buggy behavior. Shall I make a bug ticket?
Maybe I am just a silly goose.
🦢 1
I made this issue. It seems this is solved in 1.8.0 💀
178 Views