Contents

switchedOnContents(forSystemImageNamed:size:shape:controller:)

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

Declaration

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

The TCControlContents for the switch button.