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


enum Units : UInt



case `default`

The format uses the locale information to determine which units to use. Some locales mix metric and imperial units so do not assume this means one or the other.

case metric

The format uses metric units.

case imperial

The format uses imperial units.

case imperialWithYards

The format uses imperial units that include measurements in yards.

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.DistanceUnitStyle

Constants that indicate the format style to use for strings.