Skip to content

1.0.0-alpha16

Choose a tag to compare

@Kyant0 Kyant0 released this 06 Oct 07:20

API changes

  • refraction and dispersion are merged into lens

    fun BackdropEffectScope.lens(
      refractionHeight: Float,
      refractionAmount: Float = refractionHeight,
      hasDepthEffect: Boolean = false,
      chromaticAberration: Offset = Offset.Zero // Or `DefaultChromaticAberration`
    )
  • Add rememberBackdrop function to customize backdrop drawing

    fun rememberBackdrop(
      backdrop: Backdrop,
      onDraw: DrawScope.(drawBackdrop: DrawScope.() -> Unit) -> Unit
    ): Backdrop
  • Rename drawLayer parameter to onDraw in rememberLayerBackdrop function

  • The CanvasBackdrop class becomes rememberCanvasBackdrop function

  • The color parameter becomes intensity parameter in HighlightStyle.Default and .Ambient

Other changes

  • Update chromatic aberration algorithm (worse effect, but better performance, easier to observe, more like the one in iOS)
  • Update default shadow color to be more soft
  • Fix the layers won't draw on the Android 11 and older

Catalog app

  • Add toggle component
  • Unify liquid effects and interactive behaviors