onHover works on visionOS the way it works on other platforms: when you hover a pointer device. So, if for instance you're connected to your Mac Virtual display, and you move your trackpad/mouse pointer into your visionOS app's window and hover over a button, it will trigger the onHover code.
Unfortunately, Eye based hovers do not trigger this callback – as mentioned, due to privacy restrictions of the platform.
Topic:
UI Frameworks
SubTopic:
General
Tags: