---
title: EnergyFormatter.Unit
framework: foundation
role: symbol
role_heading: Enumeration
path: foundation/energyformatter/unit
---

# EnergyFormatter.Unit

The units supported by the NSEnergyFormatter class.

## Declaration

```swift
enum Unit
```

## Topics

### Constants

- [EnergyFormatter.Unit.joule](foundation/energyformatter/unit/joule.md)
- [EnergyFormatter.Unit.kilojoule](foundation/energyformatter/unit/kilojoule.md)
- [EnergyFormatter.Unit.calorie](foundation/energyformatter/unit/calorie.md)
- [EnergyFormatter.Unit.kilocalorie](foundation/energyformatter/unit/kilocalorie.md)

### Initializers

- [init(rawValue:)](foundation/energyformatter/unit/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
