Skip to content

v2.2.0

Latest

Choose a tag to compare

@DanielMartinus DanielMartinus released this 18 Oct 17:13

New

  • (#327) Added stars, triangles and diamonds Shape.Polygon.STAR, Shape.Polygon.TRIANGLE and Shape.Polygon.DIAMOND spin and flip just like the other shapes. Make a star with more points with Shape.Polygon.star(points = 6), or draw your own polygon from points. Thanks to @patxibocos for the triangle that got this started
  • Respect "Remove animations" in the accessibility settings. rememberReduceMotion() in Compose and KonfettiView.isReduceMotionEnabled(context) for views tell you when it's on, so you can skip the confetti. Nothing changes unless you check it

Heads up: Shape is a sealed interface, so if you have an exhaustive when (shape) in your own code, it needs a branch for Shape.Polygon now.