Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

MutableContentTransform

Creates a MutableContentTransform and applies the provided configuration block.

MutableContentTransform

Source set: Common
@ExperimentalDeferredTransitionApi
public inline fun MutableContentTransform(
    initialVeilMatchParentSize: Boolean = false,
    targetVeilMatchParentSize: Boolean = false,
    noinline initialOffsetVelocityProvider: (() -> Offset)? = null,
    noinline targetOffsetVelocityProvider: (() -> Offset)? = null,
    block: MutableContentTransform.() -> Unit = {},
): MutableContentTransform

Creates a MutableContentTransform and applies the provided configuration block.

Parameters

initialVeilMatchParentSize Whether the initial content's veil should match the parent size.
targetVeilMatchParentSize Whether the target content's veil should match the parent size.
initialOffsetVelocityProvider The velocity of the offset change for the exiting content in pixels/sec. If null, the system will automatically calculate the velocity based on TransformScope.offset changes during the deferred phase.
targetOffsetVelocityProvider The velocity of the offset change for the entering content in pixels/sec. If null, the system will automatically calculate the velocity based on TransformScope.offset changes during the deferred phase.
block A configuration block to set up the transformations for initial and target content.

Last updated: