Contents

unitStyle

The preferred style for units.

Declaration

var unitStyle: MKDistanceFormatter.DistanceUnitStyle { get set }

Discussion

You can abbreviate or fully spell out units. 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