addButton(descriptor:)
Creates a new button control with the provided descriptor, and adds it to the touch controller.
Declaration
func addButton(descriptor: TCButtonDescriptor) -> TCButtonParameters
- descriptor:
The
TCButtonDescriptorcontaining the configuration for the button.
Return Value
A new TCButton instance.