File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
xr/src/main/java/com/example/xr/compose Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import androidx.activity.enableEdgeToEdge
2323import androidx.compose.foundation.layout.Row
2424import androidx.compose.runtime.Composable
2525import androidx.xr.compose.platform.LocalSession
26+ import androidx.xr.compose.spatial.PlanarEmbeddedSubspace
2627import androidx.xr.compose.spatial.Subspace
2728import androidx.xr.compose.subspace.SpatialPanel
2829import androidx.xr.scenecore.scene
@@ -55,9 +56,9 @@ private fun MyComposable() {
5556
5657@Composable
5758private 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}
You can’t perform that action at this time.
0 commit comments