---
title: "init(name:role:)"
framework: Touch Controller
role: symbol
role_heading: Initializer
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+]
path: "touchcontroller/tccontrollabel/init(name:role:)"
---

# init(name:role:)

Creates a new instance with the provided name and type.

## Declaration

```swift
init(name: String, role: TCControlLabel.Role)
```

## Parameters

- `name`: The name of the control label. Corresponds to the input name on the game controller’s physical input profile.
- `role`: The role of the control label. Corresponds to the type of the GCControllerElementon the GCController.

## Return Value

Return Value A new TCControlLabel instance.
