<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKDistanceFormatter/unitStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKDistanceFormatter(py)unitStyle"
  },
  "title" : "unitStyle"
}
-->

# unitStyle

The preferred style for units.

```
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`](/documentation/MapKit/MKDistanceFormatter/DistanceUnitStyle/default), which bases the style on the user’s locale and language settings.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)