addSwitch(descriptor:)
Creates a new switch control with the provided descriptor, and adds it to the touch controller.
Declaration
func addSwitch(descriptor: TCSwitchDescriptor) -> TCSwitchParameters
- descriptor:
The
TCSwitchDescriptorcontaining the configuration for the switch.
Return Value
A new TCSwitch instance.