rob42
09/26/2024, 4:48 PMtween(durationMillis = 100)
Let's also say they are animating different types, e.g. animateFloatAsState, animateColorAsState etc..
What's the best way to share a common animationSpec in this situation?
I can't just assign the same spec, because the AnimationSpec is generic, e.g. AnimationSpec<Float> .Zach Klippenstein (he/him) [MOD]
09/26/2024, 5:07 PMZach Klippenstein (he/him) [MOD]
09/26/2024, 5:08 PMfun <T> myAnimationSpec() = tween(durationMillis = 100)rob42
09/27/2024, 12:37 PMZach Klippenstein (he/him) [MOD]
09/27/2024, 4:12 PMtad
09/27/2024, 9:00 PMtad
09/27/2024, 9:01 PMClassCastExceptionZach Klippenstein (he/him) [MOD]
09/27/2024, 9:43 PM