Skip to content

3.0.0

Compare
Choose a tag to compare
@jordond jordond released this 07 May 21:45
· 11 commits to main since this release

What's Changed

BREAKING CHANGES

Compose Multiplatform 1.8.0 includes a change to the LazyGridScope. It removes the animateItemPlacement() modifier in favour of animateItem()

So if you are using LazyDragSelectGridItemScope.animateItemPlacement(), you need to replace it with LazyDragSelectGridItemScope.animateItem():

public fun Modifier.animateItem(
    fadeInSpec: FiniteAnimationSpec<Float>? = spring(stiffness = Spring.StiffnessMediumLow),
    placementSpec: FiniteAnimationSpec<IntOffset>? =
        spring(
            stiffness = Spring.StiffnessMediumLow,
            visibilityThreshold = IntOffset.VisibilityThreshold
        ),
    fadeOutSpec: FiniteAnimationSpec<Float>? = spring(stiffness = Spring.StiffnessMediumLow),
)

Full Changelog: 2.4.3...3.0.0