---
title: "switchedOnContents(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/switchedoncontents(forsystemimagenamed:size:shape:controller:)"
---

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

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

## Declaration

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

## Parameters

- `imageName`: The name of the system image to use for the switch button.
- `size`: The size of the switch button in points.
- `shape`: The shape of the switch button.
- `controller`: The touch controller to create control contents for.

## Return Value

Return Value The TCControlContents for the switch button.
