Is there a way to crossfade between two using an A...
# compose
j
Is there a way to crossfade between two using an Animatable? I’d like to transition between two Composable as a drag gesture is performed. The Crossfade composable seems to only offer a binary API and doesn’t allow for controlled fading based on an animating value… I believe could achieve what I want using
Modifier.graphicLayer { alpha = animatedAlpha }
and
Modifier.graphicLayer { alpha = 1 - animatedAlpha }
in my two Composables but then both Composables would still be in compositions and I would need to disable gestures on the invisible one. Any advice would really be appreciated.
j
Is
AnimatedContent
seekable? The parameters of a
targetValue
is similar to
CrossFade