Instance Property


The locale to use when formatting strings.


var locale: Locale! { get set }


If you do not specify an explicit locale, the formatter uses the user’s current locale information.

See Also

Specifying the Format

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.