<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TouchController",
  "identifier" : "/documentation/TouchController/TCControlContents/directionPadContents(label:size:style:direction:controller:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Touch Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)TCControlContents(cm)directionPadContentsForLabel:size:style:direction:controller:"
  },
  "title" : "directionPadContents(label:size:style:direction:controller:)"
}
-->

# directionPadContents(label:size:style:direction:controller:)

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

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

## Parameters

`label`

The label for the direction pad.

`size`

The size of the direction pad in points.

`style`

The style of the direction pad.

`direction`

The direction of the direction pad visual.

`controller`

The touch controller to create control contents for.

## Return Value

The `TCControlContents` for the direction pad.

---

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)