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

# buttonContents(forSystemImageNamed:size:shape:controller:)

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

```
class func buttonContents(forSystemImageNamed imageName: String, size: CGSize, shape: TCControlContents.ButtonShape, controller: TCTouchController) -> TCControlContents
```

## Parameters

`imageName`

The name of the system image to use for the button.

`size`

The size of the button in points.

`shape`

The shape of the button.

`controller`

The touch controller to create control contents for.

## Return Value

The `TCControlContents` for the button.

---

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)