Vision OS: HUD mode windows

If I correctly understand, a new Enterprise API has been introduced In visionOS 26 allowing to fix windows to the user frame of reference, implementing a something like an "head up display", with the window tracking the user movements. Is this API only available to enterprise applications, and if so is there a plan to make it available for every kind of app?

Hello,

To implement something like a HUD consider using DeviceAnchor: "The position and orientation of Apple Vision Pro."

Position a HUD overlay anchor relative to the DeviceAnchor so it appears just in front of the wear's eyes.

Now when the wearer moves their and head, and Vision Pro, the HUD overlay will move as well and appear fixed on front of their eyes.

Enterprise API isn't required for this approach and the Enterprise feature in visionOS 26 seems to be different.

@DTS Engineer is correct that DeviceAnchor is the way to go. You asked about having Windows track head movement. That isn't possible, but you can get pretty close to the behavior you are looking for by providing an attachment with the SwiftUI view, then using DeviceAnchor to move the attachment entity.

Bonus:

  • Use Billboard to make the attachment face the user head-on
  • Use move(to) with a slight delay to make this attachment entity smoothly move with the user. This will create a sort of "rubber band" effect that is a lot more pleasing then a hud that is fixed in place. Fixed huds can feel both laggy and claustrophobic.

Thank you for the replies, I will try it out

Vision OS: HUD mode windows
 
 
Q