Instance Property


The preferred style for units.


var unitStyle: MKDistanceFormatter.DistanceUnitStyle { get set }


Units can be abbreviated or fully spelled out. The default value of this property is MKDistanceFormatter.DistanceUnitStyle.default, which bases the style on the user’s locale and language settings.

See Also

Specifying the Format

var locale: Locale!

The locale to use when formatting strings.

var units: MKDistanceFormatter.Units

The measuring system (imperial or metric) to use for units.

enum MKDistanceFormatter.Units

Constants that reflect the type of units to use in the string.

enum MKDistanceFormatter.DistanceUnitStyle

Constants that indicate the format style to use for strings.