Contents

addSwitch(descriptor:)

Creates a new switch control with the provided descriptor, and adds it to the touch controller.

Declaration

func addSwitch(descriptor: TCSwitchDescriptor) -> TCSwitch

Parameters

  • descriptor:

    The TCSwitchDescriptor containing the configuration for the switch.

Return Value

A new TCSwitch instance.

See Also

Adding a switch control