pub fn toggle_switch(on: &mut bool) -> impl Widget + '_
iOS-style toggle switch.
ui.add(toggle_switch(&mut my_bool));