# GoogleNavigation Framework Reference

# GMSNavigationMutableSpeedometerUIOptions

    @interface GMSNavigationMutableSpeedometerUIOptions
        : https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationSpeedometerUIOptions.html

The mutable class that encapsulates UI configuration for different severities of speed alerts,
represented by `https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationSpeedAlertSeverity.html`.
- `


  ### [-setTextColor:forSpeedAlertSeverity:lightingMode:](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationMutableSpeedometerUIOptions#/c:objc(cs)GMSNavigationMutableSpeedometerUIOptions(im)setTextColor:forSpeedAlertSeverity:lightingMode:)


  ` Sets the color of the speed alert text to use for the specified speed alert severity and lighting
  mode.

  @note: Attempting to set the color for `GMSNavigationSpeedAlertSeverityUnknown` or
  `GMSNavigationSpeedAlertSeverityNotSpeeding` is a no-op.

  #### Declaration

  Swift

      func setTextColor(_ color: UIColor, for speedAlertSeverity: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationSpeedAlertSeverity.html, lightingMode: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationLightingMode.html)

  Objective-C

      - (void)setTextColor:(nonnull UIColor *)color
          forSpeedAlertSeverity:(https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationSpeedAlertSeverity.html)speedAlertSeverity
                   lightingMode:(https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationLightingMode.html)lightingMode;

- `


  ### [-setBackgroundColor:forSpeedAlertSeverity:lightingMode:](https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Classes/GMSNavigationMutableSpeedometerUIOptions#/c:objc(cs)GMSNavigationMutableSpeedometerUIOptions(im)setBackgroundColor:forSpeedAlertSeverity:lightingMode:)


  ` Sets the speed alert icon background color to use for the specified speed alert severity and
  lighting mode.

  @note: Attempting to set the color for `GMSNavigationSpeedAlertSeverityUnknown` or
  `GMSNavigationSpeedAlertSeverityNotSpeeding` is a no-op.

  #### Declaration

  Swift

      func setBackgroundColor(_ color: UIColor, for speedAlertSeverity: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationSpeedAlertSeverity.html, lightingMode: https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationLightingMode.html)

  Objective-C

      - (void)setBackgroundColor:(nonnull UIColor *)color
           forSpeedAlertSeverity:(https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationSpeedAlertSeverity.html)speedAlertSeverity
                    lightingMode:(https://developers.google.com/maps/documentation/navigation/ios-sdk/reference/objc/Enums/GMSNavigationLightingMode.html)lightingMode;