---
title: TCSwitch
framework: Touch Controller
role: symbol
role_heading: Class
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+]
path: touchcontroller/tcswitch
---

# TCSwitch

A control that represents a single on-screen switch.

## Declaration

```swift
class TCSwitch
```

## Overview

Overview This is mirrored by a GCControllerButtonInput on the associated GCController.

## Topics

### Inspecting the switch

- [contents](touchcontroller/tcswitch/contents.md)
- [highlightDuration](touchcontroller/tcswitch/highlightduration.md)
- [isSwitchedOn](touchcontroller/tcswitch/isswitchedon.md)
- [switchedOnContents](touchcontroller/tcswitch/switchedoncontents.md)

### Getting the collider shape

- [colliderShape](touchcontroller/tcswitch/collidershape.md)
- [TCColliderShape](touchcontroller/tccollidershape.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [TCControl](touchcontroller/tccontrol.md)
- [TCControlLayout](touchcontroller/tccontrollayout.md)

## See Also

### Controls

- [TCControl](touchcontroller/tccontrol.md)
- [TCButton](touchcontroller/tcbutton.md)
- [TCDirectionPad](touchcontroller/tcdirectionpad.md)
- [TCThumbstick](touchcontroller/tcthumbstick.md)
- [TCThrottle](touchcontroller/tcthrottle.md)
- [TCTouchpad](touchcontroller/tctouchpad.md)
