According with the documentation .onHover should work for visionPro, I don't understand why is disabled, can some one from apple confirm that this function is not going to be included in the final release ?
.OnHover function disabled in visionOS
It will compile, but I believe it won't fire so we can't track user's eyes.
Hi,
In visionOS, the .onHover
modifier is designed to work exclusively with a mouse or trackpad pointer, and unfortunately does not respond to gaze interactions.
Currently, there are only two primary methods to interact with a user's gaze:
- Using the
.hoverEffect()
modifier. - Implementing
.help("some text here.")
to provide additional information using ToolTip.
I hope this information is helpful for you.