rememberMaskShape

@Composable
abstract fun rememberMaskShape(shape: Shape): GenericShape

Converts and remembers shape into a GenericShape that uses the intersection of the carousel item's mask Rect and Size as the final shape's bounds.

This method is useful if using a Shape in a Modifier other than maskClip and maskBorder where the shape should follow the changes in the item's mask size.

Parameters

shape

The shape that will be converted and remembered and react to changes in the item's mask.