Skip to main content

on_hover

Function on_hover 

Source
pub fn on_hover(
    view: &ViewHandle,
    callback: impl Fn(bool) + 'static,
) -> ViewHandle
Expand description

Apply .onHover(perform:).

On macOS this fires on mouse hover; on visionOS, when the user’s gaze lands on the view. The callback receives true on enter and false on exit.