---
title: tintColor
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiview/tintcolor
---

# tintColor

The first nondefault tint color value in the view’s hierarchy, ascending from and starting with the view itself.

## Declaration

```swift
var tintColor: UIColor! { get set }
```

## Discussion

Discussion If the system cannot find a nondefault color in the hierarchy, this property’s value is a system-defined color instead. If the view’s tintAdjustmentMode property’s value is UIView.TintAdjustmentMode.dimmed, then the tintColor property value is automatically dimmed. To refresh subview rendering when this property changes, override the tintColorDidChange() method. Colors that are pattern colors (as described in UIColor) are not supported. important: If you attempt to use a pattern color as a tint color, the system raises an exception.

## See Also

### Related Documentation

- [tintColorDidChange()](uikit/uiview/tintcolordidchange().md)

### Configuring a view’s visual appearance

- [backgroundColor](uikit/uiview/backgroundcolor.md)
- [isHidden](uikit/uiview/ishidden.md)
- [alpha](uikit/uiview/alpha.md)
- [isOpaque](uikit/uiview/isopaque.md)
- [tintAdjustmentMode](uikit/uiview/tintadjustmentmode-swift.property.md)
- [clipsToBounds](uikit/uiview/clipstobounds.md)
- [clearsContextBeforeDrawing](uikit/uiview/clearscontextbeforedrawing.md)
- [mask](uikit/uiview/mask.md)
- [layerClass](uikit/uiview/layerclass.md)
- [layer](uikit/uiview/layer.md)
