egui::demos::toggle_switch
pub fn toggle(ui: &mut Ui, on: &mut bool) -> Response
iOS-style toggle switch:
_____________ / /.....\ | |.......| \_______\_____/