---
title: mile()
framework: healthkit
role: symbol
role_heading: Type Method
path: healthkit/hkunit/mile()
---

# mile()

Returns a HealthKit unit for measuring length in miles.

## Declaration

```swift
class func mile() -> Self
```

## Return Value

Return Value A HealthKit unit for measuring length in miles.

## See Also

### Constructing length units

- [meter()](healthkit/hkunit/meter().md)
- [meterUnit(with:)](healthkit/hkunit/meterunit(with:).md)
- [inch()](healthkit/hkunit/inch().md)
- [foot()](healthkit/hkunit/foot().md)
- [yard()](healthkit/hkunit/yard().md)
