Contents

indicatorColorTransformer

The color transformer for resolving the indicator color.

Declaration

var indicatorColorTransformer: UIConfigurationColorTransformer? { get set }

Discussion

Use this color transformer to set a custom color for indicator. For example, the following code uses a grayscale color for the indicator instead of the default color.

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

See Also

Configuring the indicator