measurement
TypeScriptmeasurement(dimension: _Foundation_Dimension): _Foundation_Measurement<_Foundation_Dimension>Swift declarationfunc measurement<D>(in dimension: D) -> Measurement<D> where D : Dimensionstruct · iOS 26.0+ · SDK 27.1
struct MeasurementThe value returned for `Match.measurement` .possibleDimensions is an array of dimensions that could be considered for the measurement. There will typically be only one, unless the original string is ambiguous and could be interpreted in more than one way (e.g. "10 degrees"). .measurement is a function that will return a Measurement object properly initialized with the specified dimension
measurement(dimension: _Foundation_Dimension): _Foundation_Measurement<_Foundation_Dimension>Swift declarationfunc measurement<D>(in dimension: D) -> Measurement<D> where D : Dimensionget possibleDimensions(): Array<_Foundation_Dimension>Swift declarationlet possibleDimensions: [Dimension]get value(): numberSwift declarationlet value: DoubleNo declarations were skipped in this snapshot.