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

# addTouchpad(descriptor:)

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

## Declaration

```swift
func addTouchpad(descriptor: TCTouchpadDescriptor) -> TCTouchpad
```

## Parameters

- `descriptor`: The TCTouchpadDescriptor containing the configuration for the touchpad.

## Return Value

Return Value A new TCTouchpad instance.

## See Also

### Adding a touchpad control

- [TCTouchpadDescriptor](touchcontroller/tctouchpaddescriptor.md)
