Initializerswift 6.0.3FoundationInternationalization
init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s30FoundationInternationalization11MeasurementVA2A9DimensionCRbzlE11FormatStyleV9UnitWidthV4fromAIyx__Gs7Decoder_p_tKcfc
What are these?W35G
import FoundationInternationalization
struct UnitWidth
struct Measurement<UnitType>
struct FormatStyle
protocol Decoder
A type that can decode values from a native format into in-memory representations.
static var abbreviated: Measurement<UnitType>.FormatStyle.UnitWidth { get }
Shows the unit using abbreviation. For example, “37.20 Cal”, “37,2 L”
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: