<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIView/tintColor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIView(py)tintColor"
  },
  "title" : "tintColor"
}
-->

# tintColor

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

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

## 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`](/documentation/UIKit/UIView/tintAdjustmentMode-swift.property) property’s value is [`UIView.TintAdjustmentMode.dimmed`](/documentation/UIKit/UIView/TintAdjustmentMode-swift.enum/dimmed), then the [`tintColor`](/documentation/UIKit/UIView/tintColor) property value is automatically dimmed.

To refresh subview rendering when this property changes, override the [`tintColorDidChange()`](/documentation/UIKit/UIView/tintColorDidChange()) method.

Colors that are pattern colors (as described in [`UIColor`](/documentation/UIKit/UIColor)) are not supported.

> Important:
> If you attempt to use a pattern color as a tint color, the system raises an exception.

## See Also

[`tintColorDidChange()`](/documentation/UIKit/UIView/tintColorDidChange())

Called by the system when the tint color property changes.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)