Skip to content

Commit 32e62cd

Browse files
authored
Updating snippet for subspace. (#727)
1 parent ad93700 commit 32e62cd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

xr/src/main/java/com/example/xr/compose/Subspace.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import androidx.activity.enableEdgeToEdge
2323
import androidx.compose.foundation.layout.Row
2424
import androidx.compose.runtime.Composable
2525
import androidx.xr.compose.platform.LocalSession
26+
import androidx.xr.compose.spatial.PlanarEmbeddedSubspace
2627
import androidx.xr.compose.spatial.Subspace
2728
import androidx.xr.compose.subspace.SpatialPanel
2829
import androidx.xr.scenecore.scene
@@ -55,9 +56,9 @@ private fun MyComposable() {
5556

5657
@Composable
5758
private fun PrimaryPane() {
58-
// This is a nested subspace, because PrimaryPane is in a SpatialPanel
59-
// and that SpatialPanel is in a top-level Subspace
60-
Subspace {
59+
// This is an embedded subspace, because PrimaryPane is in a SpatialPanel
60+
// and that SpatialPanel is in the top-level Subspace
61+
PlanarEmbeddedSubspace {
6162
SpatialPanel {}
6263
}
6364
}

0 commit comments

Comments
 (0)