Is it possible to programmatically alter the size of a volume on Vision Pro?

Asked on 07/30/2024

1 search

Yes, it is possible to programmatically alter the size of a volume on Vision Pro. This can be done by driving the size of your volume in code as your app updates its content. Changes to the frames of your views inform the volume about its size, allowing it to resize smoothly. You can add a state variable for the scale and update the frame values of your view, which will automatically resize the volume to fit the new size.

For more details, you can refer to the session Dive deep into volumes and immersive spaces (05:26).