Contents

MeasurementFormatter

A formatter that provides localized representations of units and measurements.

Declaration

class MeasurementFormatter

Overview

You use the string(from:) method to create a localized representation of an NSMeasurement object, and you use the string(from:) method to create a localized representation of an Unit object. The formatter takes into account the specified locale, unitStyle, and unitOptions when producing string representations of units and measurements.

Topics

Specifying the Format

Converting Measurements