<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Measurement/FormatStyle/width",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation11MeasurementVAASo11NSDimensionCRbzrlE11FormatStyleV5widthAG9UnitWidthVyx__Gvp"
  },
  "title" : "width"
}
-->

# width

The width of the measurement unit.

```
var width: Measurement<UnitType>.FormatStyle.UnitWidth
```

## Discussion

The `width` property specifies the display of the measurement unit. The possible values are [`abbreviated`](/documentation/Foundation/Measurement/FormatStyle/UnitWidth/abbreviated), [`narrow`](/documentation/Foundation/Measurement/FormatStyle/UnitWidth/narrow), and [`wide`](/documentation/Foundation/Measurement/FormatStyle/UnitWidth/wide). The format style represents the unit in the shortest notation available.

The following example shows *100 degrees Fahrenheit* in each width for the `en_US` locale.

```swift
let temperatureMeasurement = Measurement<UnitTemperature>(value: 100, unit: .fahrenheit)
temperatureMeasurement.formatted(.measurement(width: .wide)) // 100 degrees Fahrenheit
temperatureMeasurement.formatted(.measurement(width: .abbreviated)) // 100°F
temperatureMeasurement.formatted(.measurement(width: .narrow)) // 100°
```

---

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)