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

# withTintColor(_:)

Returns a new version of the current image with the specified tint color.

## Declaration

```swift
func withTintColor(_ color: UIColor) -> UIImage
```

## Parameters

- `color`: The tint color to apply to the 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. The new image uses the same rendering mode as the original image.

## See Also

### Tinting the image

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