---
title: "addButton(descriptor:)"
framework: Touch Controller
role: symbol
role_heading: Instance Method
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+]
path: "touchcontroller/tctouchcontroller/addbutton(descriptor:)"
---

# addButton(descriptor:)

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

## Declaration

```swift
func addButton(descriptor: TCButtonDescriptor) -> TCButton
```

## Parameters

- `descriptor`: The TCButtonDescriptor containing the configuration for the button.

## Return Value

Return Value A new TCButton instance.

## See Also

### Adding a button control

- [TCButtonDescriptor](touchcontroller/tcbuttondescriptor.md)
