Contents

buttonContents(forSystemImageNamed:size:shape:controller:)

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

Declaration

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.

See Also

Accessing button contents