Creates and adds a Switch toggle to a Layout.

app.AddSwitch( layout, text, width=-1, height=-1, options? ) → app object: Switch

See CreateSwitch for full documentation.