Has someone talked about how animations will work?...
# compose
u
Has someone talked about how animations will work? Is it going to be TransitionManager automatic type of stuff?
l
You can have a look at some example bundle with
repo
Ripple
is a good example for animations imho
m
You also might want to take a look at
Transition
composable and
transitionDefinition
function, if you want to have declarative animation between states
If you want flexible control over animation of one value, consider using
AnimatedFloat
or
AnimatedValue
, so you can have animatable value holder experience
z
I believe they are also planning to add something like SwiftUI’s
withAnimation
in the future. https://developer.apple.com/tutorials/swiftui/animating-views-and-transitions
u
@Zach Klippenstein (he/him) [MOD] interesting, but how would I know which animation to play, or rather from which state to animate from? Would I need to keep a reference to a previous state? (since ui now has no state)
z
No idea. I assume it would be similar to how SwiftUI does it but you'd have to ask someone who's actually working on it 😂