Function

scale

Scale the contents of the composable by the scale factor along horizontal, vertical, and depth axes.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

scale

Android
public fun SubspaceModifier.scale(
    @FloatRange(from = 0.0, fromInclusive = false) scale: Float
): SubspaceModifier

Scale the contents of the composable by the scale factor along horizontal, vertical, and depth axes. Scaling does not change the measured size of the composable content during layout. Measured size of SubspaceComposable elements can be controlled using size Modifiers. Scale factor should be a positive number.

Parameters

scale Multiplier to scale content along vertical, horizontal, depth axes.