Contents

quantity(for:)

Returns the voltage for the specified lead.

Declaration

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:).

See Also

Accessing Data