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

transformingResizable

When the resizable modifier is present and enabled, UI controls will be shown that allow the user to resize the element in 3D space.

BasicTransformingResizableSample

/** A sample demonstrating a simple resizable component where the system manages the layout. */
@SubspaceComposable
@Composable
public fun BasicTransformingResizableSample() {
    SpatialPanel(
        modifier =
            SubspaceModifier.transformingResizable(
                minimumSize = DpVolumeSize(100.dp, 100.dp, 0.dp),
                maximumSize = DpVolumeSize(800.dp, 800.dp, 0.dp),
            )
    ) {
        Text("Transforming Resizable")
    }
}

Last updated: