<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "tvOS: 16.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIButton/Configuration-swift.struct/indicatorColorTransformer",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So8UIButtonC5UIKitE13ConfigurationV25indicatorColorTransformerAC015UIConfigurationeF0VSgvp"
  },
  "title" : "indicatorColorTransformer"
}
-->

# indicatorColorTransformer

The color transformer for resolving the indicator color.

```
var indicatorColorTransformer: UIConfigurationColorTransformer? { get set }
```

## Discussion

Use this color transformer to set a custom color for [`indicator`](/documentation/UIKit/UIButtonConfiguration/indicator). For example, the following code uses a grayscale color for the indicator instead of the default color.

```swift
var config = UIButton.Configuration.filled()
config.indicatorColorTransformer = UIConfigurationColorTransformer.grayscale
```

---

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)