-
A formatter that provides localized representations of distance units and measurements.
This class is limited to
See moreUnitLengthand its behavior is more specific to distances thanMeasurementFormatter. By default, the class automatically localizes and rounds the measurement usingMeasurement.localized(into:)andLocale.nationalizedCurrent. Measurements can be formatted into either strings or attributed strings.Declaration
Swift
open class DistanceFormatter : Formatter, NSSecureCoding
Install in Dash
Formatters Reference