<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKElectrocardiogram/VoltageMeasurement/quantity(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKElectrocardiogramVoltageMeasurement(im)quantityForLead:"
  },
  "title" : "quantity(for:)"
}
-->

# quantity(for:)

Returns the voltage for the specified lead.

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

## Parameters

`lead`

The lead whose voltage you want to read.

## Return Value

A quantity object containing a value in volt units. These values are compatible with any units created using [`voltUnit(with:)`](/documentation/HealthKit/HKUnit/voltUnit(with:)).

---

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)