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

# TCSwitchDescriptor

A descriptor for configuring a switch.

## Declaration

```swift
class TCSwitchDescriptor
```

## Topics

### Creating the descriptor

- [init()](touchcontroller/tcswitchdescriptor/init().md)

### Inspecting the descriptor

- [contents](touchcontroller/tcswitchdescriptor/contents.md)
- [highlightDuration](touchcontroller/tcswitchdescriptor/highlightduration.md)
- [label](touchcontroller/tcswitchdescriptor/label.md)
- [offset](touchcontroller/tcswitchdescriptor/offset.md)
- [size](touchcontroller/tcswitchdescriptor/size.md)
- [switchedOnContents](touchcontroller/tcswitchdescriptor/switchedoncontents.md)
- [zIndex](touchcontroller/tcswitchdescriptor/zindex.md)

### Accessing the anchor

- [anchor](touchcontroller/tcswitchdescriptor/anchor.md)
- [TCControlLayoutAnchor](touchcontroller/tccontrollayoutanchor.md)
- [anchorCoordinateSystem](touchcontroller/tcswitchdescriptor/anchorcoordinatesystem.md)
- [TCControlLayoutAnchorCoordinateSystem](touchcontroller/tccontrollayoutanchorcoordinatesystem.md)

### Getting the collider shape

- [colliderShape](touchcontroller/tcswitchdescriptor/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)

## See Also

### Adding a switch control

- [addSwitch(descriptor:)](touchcontroller/tctouchcontroller/addswitch(descriptor:).md)
