---
title: "setTintColor(_:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfaceimage/settintcolor(_:)"
---

# setTintColor(_:)

Changes the color applied to a template image.

## Declaration

```swift
func setTintColor(_ tintColor: UIColor?)
```

## Parameters

- `tintColor`: The tint color to use for a template image. Specify nil to use the default tint color.

## Discussion

Discussion When you display a template image, use this method to set the tint color to apply to that image. With a template image, WatchKit uses only the alpha channel of the image to define a shape. To create a template image from an existing image, call the withRenderingMode(_:) method on an existing UIImage and specify the UIImage.RenderingMode.alwaysTemplate rendering mode. An image object applies the tint color only when it contains a single template image. It does not apply the tint color to animated images or images that are not configured as template images.

## See Also

### Configuring the Image

- [setImage(_:)](watchkit/wkinterfaceimage/setimage(_:).md)
- [setImageData(_:)](watchkit/wkinterfaceimage/setimagedata(_:).md)
- [setImageNamed(_:)](watchkit/wkinterfaceimage/setimagenamed(_:).md)
