<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TouchController",
  "identifier" : "/documentation/TouchController/TCControlContents",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Touch Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)TCControlContents"
  },
  "title" : "TCControlContents"
}
-->

# TCControlContents

Represents the visual contents of a touch control.

```
class TCControlContents
```

## Topics

### Creating control contents

[`convenience init(images: [TCControlImage])`](/documentation/TouchController/TCControlContents/init(images:))

Creates a new instance with the specified images.

### Getting the images

[`var images: [TCControlImage]`](/documentation/TouchController/TCControlContents/images)

The array of objects used to render the control.

### Accessing button contents

[`class func buttonContents(forSystemImageNamed: String, size: CGSize, shape: TCControlContents.ButtonShape, controller: TCTouchController) -> TCControlContents`](/documentation/TouchController/TCControlContents/buttonContents(forSystemImageNamed:size:shape:controller:))

The button contents for the specified system image name, size, and shape.

[`enum ButtonShape`](/documentation/TouchController/TCControlContents/ButtonShape)

Defines the visual shape of a button.

### Accessing directional pad contents

[`class func directionPadContents(label: TCControlLabel, size: CGSize, style: TCControlContents.DpadElementStyle, direction: TCControlContents.DpadDirection, controller: TCTouchController) -> TCControlContents`](/documentation/TouchController/TCControlContents/directionPadContents(label:size:style:direction:controller:))

The direction pad contents for the specified label, size, style, and direction.

[`enum DpadDirection`](/documentation/TouchController/TCControlContents/DpadDirection)

Defines the direction of a direction pad visual.

[`enum DpadElementStyle`](/documentation/TouchController/TCControlContents/DpadElementStyle)

Defines the visual style of the individual up/down/left/right elements of a direction pad.

### Accessing switch contents

[`class func switchedOnContents(forSystemImageNamed: String, size: CGSize, shape: TCControlContents.ButtonShape, controller: TCTouchController) -> TCControlContents`](/documentation/TouchController/TCControlContents/switchedOnContents(forSystemImageNamed:size:shape:controller:))

The switch contents for the specified system image name, size, and shape.

### Accessing throttle contents

[`class func throttleBackgroundContents(size: CGSize, controller: TCTouchController) -> TCControlContents`](/documentation/TouchController/TCControlContents/throttleBackgroundContents(size:controller:))

The throttle background contents for the specified size.

[`class func throttleIndicatorContents(size: CGSize, controller: TCTouchController) -> TCControlContents`](/documentation/TouchController/TCControlContents/throttleIndicatorContents(size:controller:))

The throttle indicator contents for the specified size.

### Accessing thumbstick contents

[`class func thumbstickStickBackgroundContents(size: CGSize, controller: TCTouchController) -> TCControlContents`](/documentation/TouchController/TCControlContents/thumbstickStickBackgroundContents(size:controller:))

The thumbstick background contents for the specified size.

[`class func thumbstickStickContents(size: CGSize, controller: TCTouchController) -> TCControlContents`](/documentation/TouchController/TCControlContents/thumbstickStickContents(size:controller:))

The thumbstick stick contents for the specified size.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)