---
title: "buttonContents(forSystemImageNamed:size:shape:controller:)"
framework: Touch Controller
role: symbol
role_heading: Type Method
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+]
path: "touchcontroller/tccontrolcontents/buttoncontents(forsystemimagenamed:size:shape:controller:)"
---

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

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

## Declaration

```swift
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

Return Value The TCControlContents for the button.

## See Also

### Accessing button contents

- [TCControlContents.ButtonShape](touchcontroller/tccontrolcontents/buttonshape.md)
