Contents

hidesScaleName

The visibility of the unit name of a temperature.

Declaration

var hidesScaleName: Bool { get set }

Discussion

Set hidesScaleName to true to exclude the unit name from a formatted temperature string. For example, 90° rather than 90°F or 90°C with the narrow unit width, or 90 degrees rather than 90 degrees Celcius or 90 degrees Fahrenheit with the wide width.

Hiding the unit name only affects the presentation of the measurement. Unless you specify asProvided as the usage, the system converts the temperature to the unit that the locale uses.

See Also

Modifying a measurement format style