---
title: unit
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkmedicationdoseevent/unit
---

# unit

The unit that the system associates with the medication when the person logs the dose.

## Declaration

```swift
@NSCopying var unit: HKUnit { get }
```

## Discussion

Discussion This ensures that the dose quantity is recorded with the correct measurement unit.
