MeasurementUnit
public enum MeasurementUnit : String, Codable
The unit of measurement to use when performing calculations, also which unit of measure calculations will be returned in.
-
The unit of measure used primarily by the United States.
Declaration
Swift
case imperial = "Imperial" -
The unit of measure used by literally the rest of the world.
Declaration
Swift
case metric = "Metric" -
Returns string describing enumeration case.
Declaration
Swift
public var description: String { get } -
Units describing units for depth, weight, volume and pressure.
Declaration
Swift
public var units: Units { get }
MeasurementUnit Enumeration Reference