Function hypex_ui::toggle_switch

source ·
pub fn toggle_switch(on: &mut bool) -> impl Widget + '_
Expand description

iOS-style toggle switch.

Example:

ui.add(toggle_switch(&mut my_bool));