---
title: "quantity(for:)"
framework: healthkit
role: symbol
role_heading: Instance Method
path: "healthkit/hkelectrocardiogram/voltagemeasurement/quantity(for:)"
---

# quantity(for:)

Returns the voltage for the specified lead.

## Declaration

```swift
func quantity(for lead: HKElectrocardiogram.Lead) -> HKQuantity?
```

## Parameters

- `lead`: The lead whose voltage you want to read.

## Return Value

Return Value A quantity object containing a value in volt units. These values are compatible with any units created using voltUnit(with:).

## See Also

### Accessing Data

- [timeSinceSampleStart](healthkit/hkelectrocardiogram/voltagemeasurement/timesincesamplestart.md)
