Static Propertyswift 6.0.3FoundationInternationalization
abbreviated
Shows the unit using abbreviation. For example, “37.20 Cal”, “37,2 L”
static var abbreviated: Measurement<UnitType>.FormatStyle.UnitWidth { get }
Shows the unit using abbreviation. For example, “37.20 Cal”, “37,2 L”
static var abbreviated: Measurement<UnitType>.FormatStyle.UnitWidth { get }
s30FoundationInternationalization11MeasurementVA2A9DimensionCRbzlE11FormatStyleV9UnitWidthV11abbreviatedAIyx__GvpZ
What are these?3IPNP
import FoundationInternationalization
struct UnitWidth
struct Measurement<UnitType>
struct FormatStyle
init(from decoder: any Decoder) throws
static var narrow: Measurement<UnitType>.FormatStyle.UnitWidth { get }
Shows the unit in the shortest form possible, and may condense the spacing between the value and the unit. For example, “37.20Cal”, “37,2L”
static var wide: Measurement<UnitType>.FormatStyle.UnitWidth { get }
Examples for formatting a measurement with value of 37.20: