Skip to content

How to implement Shared Element Transitions across Workflow screens #1300

Answered by vRallev
balao7 asked this question in Q&A
Discussion options

You must be logged in to vote

I hope this helps. App Platform was heavily inspired by Workflow, so perhaps the solution can be translated.

My proposal was to setup a SharedTransitionLayout and AnimatedContent close to the root of the Compose UI layer. Composable get access to these through composition locals, which the Compose documentation highlights. The important piece is that you have to bubble up in some way or another that a specific change in the model should be animated. For this in my example the models can expose a contentKey that highlights when something should be animated. This is the sample PR: amzn/app-platform#37

I'm unsure how well this scales, but I also haven't found a blocker yet where this approac…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rjrjr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants