Skip to main content

overlay_root

Function overlay_root 

Source
pub fn overlay_root(children: impl IntoChildren) -> View
Expand description

The overlay root: full-screen, and deliberately not focusable.

The template games wrap their overlay in a focusable root that requests focus for itself every frame, which is why no button in those games can be reached with a keyboard or a pad. A root that stays out of the focus chain leaves focus to the kit’s controls.