Can you try commenting out your entity/SpatialTapGesture code? I have a hunch that the entity may be intercepting taps intended for the button. visionOS has some odd issues when we place gestures on entities that the user will be inside of.
You may want to take a look at SpatialEventGesture instead of using the tap in an entity. This will let you listen to input anywhere in the immersive space without using a specific entity.
Docs:
https://developer.apple.com/documentation/swiftui/spatialeventgesture
Example Code:
https://stepinto.vision/example-code/spatial-event-gesture/
Is .windowStyle(.plain) expected to affect button interaction behavior?
No, I've used buttons in many plain windows. Unless visionOS 26.3 introduced a new bug, it seems like something else is going on here.
What is the recommended approach to achieve a transparent/hidden window in immersive mode while maintaining button interactivity?
You're on the right track, see above about the entity gesture intercepting input.
Is there an alternative to .windowStyle(.plain) for hiding window chrome in visionOS?
No, not for hiding the glass background of the a window. .plain window style is the only way.
Topic:
Spatial Computing
SubTopic:
General
Tags: