Instance Property

locale

The locale to use when formatting strings.

Declaration

var locale: Locale! { get set }

Discussion

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.