Module toggle_switch
egui::demos
Source code example of how to create your own widget. This is meant to be read as a tutorial, hence the plethora of comments.
iOS-style toggle switch: