---
title: measurementSystem
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/locale/measurementsystem-swift.property
---

# measurementSystem

The measurement system used by the locale, like metric or the US system.

## Declaration

```swift
var measurementSystem: Locale.MeasurementSystem { get }
```

## Discussion

Discussion When called on the special Locale instances current or autoupdatingCurrent, if the user overrode the default measurement system, this property provides the user’s preference. This property corresponds to the ms key of the Unicode BCP 47 extension. For locale instances created with the ms specifier (such as en-US@ms=metric), or with a custom Locale.Components, this property represents the custom measurement system. Otherwise, it represents the locale’s default measurement system.

## See Also

### Getting measurement and counting components

- [currency](foundation/locale/currency-swift.property.md)
- [Locale.Currency](foundation/locale/currency-swift.struct.md)
- [Locale.MeasurementSystem](foundation/locale/measurementsystem-swift.struct.md)
- [numberingSystem](foundation/locale/numberingsystem-swift.property.md)
- [availableNumberingSystems](foundation/locale/availablenumberingsystems.md)
- [Locale.NumberingSystem](foundation/locale/numberingsystem-swift.struct.md)
