---
title: "withTintColor(_:renderingMode:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiimage/withtintcolor(_:renderingmode:)"
---

# withTintColor(_:renderingMode:)

Returns a new version of the image with a tint color that uses the specified rendering mode.

## Declaration

```swift
func withTintColor(_ color: UIColor, renderingMode: UIImage.RenderingMode) -> UIImage
```

## Parameters

- `color`: The tint color to apply to the image.
- `renderingMode`: The rendering mode to assign to the returned image.

## Return Value

Return Value A new version of the image that incorporates the specified tint color.

## Discussion

Discussion For bitmap images, this method draws the background tint color followed by the image contents using the CGBlendMode.destinationIn mode. For symbol images, this method returns an image that always uses the specified tint color.

## See Also

### Tinting the image

- [withTintColor(_:)](uikit/uiimage/withtintcolor(_:).md)
