Philip Dukhov
Philip Dukhov
I tried implementing this myself: I was able to calculate the right `zIndex` using `navController.backQueue` in `AnimatedNavHost` for the current entry, but if I am not mistaken, this should be...
Thanks, @doris4lt, `targetContentZIndex` is exactly what I was looking for! Not sure what is the ideal API to solve this issue - in my project I just check the index...
@doris4lt I'm using the following code in `AnimatedNavHost` right now: ``` targetContentZIndex = navController.backQueue .indexOf(targetState) .takeIf { it >= 0 } ?.toFloat() ?: Float.MAX_VALUE ``` I guess that the most...
@doris4lt For my needs `targetContentZIndex` seems sufficient, I can't think of any use cases for `ContentTransform`. But I ran into another problem with `targetContentZIndex`. Let's say I have several views...
@x4080 have you checked official sample on https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/animation/animation/samples/src/main/java/androidx/compose/animation/samples/AnimatedContentSamples.kt;l=242? Until this issue is resolved, you have to create a fork or copy source code to your project to make this change...
Hi @doris4lt, can you confirm that the problem from my [last comment](https://github.com/google/accompanist/issues/1160#issuecomment-1159777398) is clear, or should I provide a minimal reproducible example with a video and more details?
@doris4lt I found a way to calculate it for my particular case using an auxiliary array, so being able to change `targetContentZIndex` seems completely sufficient to close this problem.
@doris4lt Sure, it looks like this: ``` val allEntryIds = rememberSaveable { mutableListOf() } navController.backQueue .map(NavBackStackEntry::id) .filterNot(allEntryIds::contains) .forEach(allEntryIds::add) val transition = updateTransition(backStackEntry, label = "entry") transition.AnimatedContent( modifier, transitionSpec = {...
`SwipeRefresh` [the change in line 301](https://github.com/sitatec/accompanist/blob/d0133e25decd10f7a6dd204a9e9bbd1716fe8dd3/swiperefresh/src/main/java/com/google/accompanist/swiperefresh/SwipeRefresh.kt#L301) looks like an unused expression.
@yshrsmz do you have a plan to add multiplatform support for `secrets-gradle-plugin`?