One Logo Pool Ball
DataDetection · IOS API REFERENCE

DataDetector.Match.SemanticDetails.Measurement

struct · iOS 26.0+ · SDK 27.1

struct Measurement

The 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

Members (3)

method · iOS 26.0+

measurement

TypeScript
measurement(dimension: _Foundation_Dimension): _Foundation_Measurement<_Foundation_Dimension>
Swift declaration
func measurement<D>(in dimension: D) -> Measurement<D> where D : Dimension
get · iOS 26.0+

possibleDimensions

TypeScript
get possibleDimensions(): Array<_Foundation_Dimension>
Swift declaration
let possibleDimensions: [Dimension]
get · iOS 26.0+

value

TypeScript
get value(): number
Swift declaration
let value: Double

Skipped declarations

No declarations were skipped in this snapshot.

All DataDetection types →