How to correct use animation with compose navigati...
# compose
i
How to correct use animation with compose navigation? If i wrap
composable
content of navigation graph in animation then animations will always the same whether
composable
content appears on first open or it appear from bacstack. What if i want forward animation on first open, but it must be backward when screen appears from backstack?
s
If I'm not mistaken, navigation-compose has a fade-in/fade-out transition by default now. There's currently no way to customize this in navigation-compose, but accompanist-navigation-animation has you covered.
👀 1
Also, FWIW, I believe the reason this hasn't made it to navigation-compose yet is because it relies on some experimental Compose APIs which can't be dependent on yet due to potential breaking changes.
☝️ 1
i
You can read the blog post for all the details: https://link.medium.com/351hIdxaAib
🙌 1