<!--
{
  "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/MassFormatter/Unit",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSMassFormatterUnit"
  },
  "title" : "MassFormatter.Unit"
}
-->

# MassFormatter.Unit

The units supported by the `NSMassFormatter` class.

```
enum Unit
```

## Topics

### Constants

[`NSMassFormatterUnitGram`](/documentation/Foundation/MassFormatter/Unit/gram)

The gram unit.

[`NSMassFormatterUnitKilogram`](/documentation/Foundation/MassFormatter/Unit/kilogram)

The kilogram unit.

[`NSMassFormatterUnitOunce`](/documentation/Foundation/MassFormatter/Unit/ounce)

The ounce unit.

[`NSMassFormatterUnitPound`](/documentation/Foundation/MassFormatter/Unit/pound)

The pound unit.

[`NSMassFormatterUnitStone`](/documentation/Foundation/MassFormatter/Unit/stone)

The stone unit.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)