Can visionOS windows be smarter about following users?

I haven't found a way to programmatically position the main view in visionOS apps, which seems intentional. While this aligns with user-controlled window placement, it creates a challenge: as users move, they must constantly reposition the main window manually.

A potential solution could be a feature that quickly brings the window to the user, perhaps via a custom gesture. This might improve user experience significantly.

Given my current understanding of visionOS, I may be missing something. I'd appreciate any insights or alternative perspectives on this issue. Thoughts?

Answered by lijiaxu in 808728022

The position of the window cannot be modified through programming in VisionOS. For your requirements, I suggest you consider using immersive space to achieve the desired effect. This approach allows the window to move in sync with the user’s movements. To track the user’s head, you can utilize the anchorEnity feature in RealityView.

Accepted Answer

The position of the window cannot be modified through programming in VisionOS. For your requirements, I suggest you consider using immersive space to achieve the desired effect. This approach allows the window to move in sync with the user’s movements. To track the user’s head, you can utilize the anchorEnity feature in RealityView.

Hey @fportelacala,

You mention a custom gesture, but did you know that you can press and hold the Digital Crown to recenter applications?

If you have a request for additional API, please file an enhancement request using Feedback Assistant and leave a comment here with the number after you do so we can quickly reference the two. If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

Hope this helps,
Michael

Can visionOS windows be smarter about following users?
 
 
Q