<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/LengthFormatter/Unit",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSLengthFormatterUnit"
  },
  "title" : "LengthFormatter.Unit"
}
-->

# LengthFormatter.Unit

The units supported by the `NSLengthFormatter` class.

```
enum Unit
```

## Topics

### Constants

[`NSLengthFormatterUnitMillimeter`](/documentation/Foundation/LengthFormatter/Unit/millimeter)

The millimeter unit.

[`NSLengthFormatterUnitCentimeter`](/documentation/Foundation/LengthFormatter/Unit/centimeter)

The centimeter unit.

[`NSLengthFormatterUnitMeter`](/documentation/Foundation/LengthFormatter/Unit/meter)

The meter unit.

[`NSLengthFormatterUnitKilometer`](/documentation/Foundation/LengthFormatter/Unit/kilometer)

The kilometer unit.

[`NSLengthFormatterUnitInch`](/documentation/Foundation/LengthFormatter/Unit/inch)

The inch unit.

[`NSLengthFormatterUnitFoot`](/documentation/Foundation/LengthFormatter/Unit/foot)

The foot unit.

[`NSLengthFormatterUnitYard`](/documentation/Foundation/LengthFormatter/Unit/yard)

The yard unit.

[`NSLengthFormatterUnitMile`](/documentation/Foundation/LengthFormatter/Unit/mile)

The mile unit.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

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)