Enumeration

Formatter.UnitStyle

Specifies the width of the unit, determining the textual representation.

Declaration

enum UnitStyle : Int

Overview

The unit is represented in the shortest notation available. For example, for English, when formatting "3 pounds": Formatter.UnitStyle.long is "3 pounds"; Formatter.UnitStyle.medium is "3 lb"; Formatter.UnitStyle.short is "3#".

Topics

Constants

case short

Specifies a short unit style.

case medium

Specifies a medium unit style.

case long

Specifies a long unit style.