• A formatter that provides localized representations of distance units and measurements.

    This class is limited to UnitLength and its behavior is more specific to distances than MeasurementFormatter. By default, the class automatically localizes and rounds the measurement using Measurement.localized(into:) and Locale.nationalizedCurrent. Measurements can be formatted into either strings or attributed strings.

    See more

    Declaration

    Swift

    open class DistanceFormatter : Formatter, NSSecureCoding