Contents

indicatorColorTransformer

The color transformer for resolving the indicator color.

Declaration

@property (nonatomic, copy, readwrite) UIConfigurationColorTransformer indicatorColorTransformer;

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.

UIButtonConfiguration *config = UIButtonConfiguration.filledButtonConfiguration;
config.indicatorColorTransformer = UIConfigurationColorTransformerGrayscale;

See Also

Configuring the indicator