Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifier.animateItemPlacement() deprecated in Compose Foundation v1.7.0-alpha06 #26

Open
Calvin-LL opened this issue Apr 24, 2024 · 4 comments
Labels
Waiting for Compose Foundation v1.7.0 Waiting for Compose Foundation v1.7.0 to be in Compose Multiplatform

Comments

@Calvin-LL
Copy link
Owner

Item appearance and disappearance animation support was added into LazyColumn and LazyRow. Previously it was possible to add Modifier.animateItemPlacement() modifier in order to support placement (reordering) animations. We deprecated this modifier and introduced a new non-experimental modifier called Modifier.animateItem() which allows you to support all three animation types: appearance (fade in), disappearance (fade out) and reordering. (I2d7f7, b/150812265)

In Compose Foundation version 1.7.0-alpha06 release notes.

Should remove Modifier.animateItemPlacement() with Modifier.animateItem() once v1.7.0 is out.

@Calvin-LL Calvin-LL changed the title Modifier.animateItemPlacement() deprecated in Compose Foundation v1.7.0 Modifier.animateItemPlacement() deprecated in Compose Foundation v1.7.0-alpha06 May 7, 2024
@Calvin-LL
Copy link
Owner Author

Did some math in #32

Compose Foundation 1.6.0-alpha08 to 1.6.0 took almost 3 months, the latest Compose Multiplatform 1.6.2 uses Compose Foundation 1.6.4 which is a 20-day gap. So expect Compose Foundation v1.7.0 to be in Compose Multiplatform in around 4 months at the current speed.

So that means Compose Foundation v1.7.0 will probably be out around late August - early September.

@Calvin-LL Calvin-LL added the Waiting for Compose Foundation v1.7.0 Waiting for Compose Foundation v1.7.0 to be in Compose Multiplatform label May 9, 2024
@berhram
Copy link

berhram commented May 30, 2024

Sorry to bother you. I cloned the lib files into my project. Bumped Compose libs (Android ones because it's an Android app) to 1.7.0-beta02. Replaced animateItemPlacement() with animateItem(), but nothing changed. Did I do something wrong and there is more work to do to adapt to newer Compose versions?

@Calvin-LL
Copy link
Owner Author

Sorry to bother you. I cloned the lib files into my project. Bumped Compose libs (Android ones because it's an Android app) to 1.7.0-beta02. Replaced animateItemPlacement() with animateItem(), but nothing changed. Did I do something wrong and there is more work to do to adapt to newer Compose versions?

There are lots of places marked TODO(foundation v1.7.0) in the code for 1.7.0 that need to be made before that's fixed.

@Calvin-LL
Copy link
Owner Author

Good news! v1.7.0 is being released in June according to https://android-developers.googleblog.com/2024/05/whats-new-in-jetpack-compose-at-io-24.html, we should see v1.7.0 land in Compose Multiplatform some time in June/July.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for Compose Foundation v1.7.0 Waiting for Compose Foundation v1.7.0 to be in Compose Multiplatform
Projects
None yet
Development

No branches or pull requests

2 participants