Used to define the identifiers that create quantity type objects.

SDKs

- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.0+

Framework

- Health
Kit

## Declaration

## Discussion

To create an `HKQuantity`

instance, pass an `HKQuantity`

value to the `quantity`

method.

Type Alias# HKQuantityTypeIdentifier

Used to define the identifiers that create quantity type objects.

SDKs

- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.0+

Framework

- Health
Kit

To create an `HKQuantity`

instance, pass an `HKQuantity`

value to the `quantity`

method.

`HKQuantity`TypeIdentifierHeight

A quantity sample type that measures the user’s height.

`HKQuantity`TypeIdentifierBodyMass

A quantity sample type that measures the user’s weight.

`HKQuantity`TypeIdentifierBodyMassIndex

A quantity sample type that measures the user’s body mass index.

`HKQuantity`TypeIdentifierLeanBodyMass

A quantity sample type that measures the user’s lean body mass.

`HKQuantity`TypeIdentifierBodyFatPercentage

A quantity sample type that measures the user’s body fat percentage.

`HKQuantity`TypeIdentifierWaistCircumference

A quantity sample type that measures the user’s waist circumference.

`HKQuantity`TypeIdentifierHeartRate

A quantity sample type that measures the user’s heart rate.

`HKQuantity`TypeIdentifierRestingHeartRate

A quantity sample type that measures the user’s resting heart rate.

`HKQuantity`TypeIdentifierWalkingHeartRateAverage

A quantity sample type that measures the user’s heart rate while walking.

`HKQuantity`TypeIdentifierHeartRateVariabilitySDNN

A quantity sample type that measures the standard deviation of heartbeat intervals.

`HKQuantity`TypeIdentifierOxygenSaturation

A quantity sample type that measures the user’s oxygen saturation.

`HKQuantity`TypeIdentifierBodyTemperature

A quantity sample type that measures the user’s body temperature.

`HKQuantity`TypeIdentifierBloodPressureDiastolic

A quantity sample type that measures the user’s diastolic blood pressure.

`HKQuantity`TypeIdentifierBloodPressureSystolic

A quantity sample type that measures the user’s systolic blood pressure.

`HKQuantity`TypeIdentifierRespiratoryRate

A quantity sample type that measures the user’s respiratory rate.

`HKQuantity`TypeIdentifierVO2Max

A quantity sample that measures the maximal oxygen consumption during incremental exercise.

`HKQuantity`TypeIdentifierBloodAlcoholContent

A quantity sample type that measures the user’s blood alcohol content.

`HKQuantity`TypeIdentifierBloodGlucose

A quantity sample type that measures the user’s blood glucose level.

`HKQuantity`TypeIdentifierElectrodermalActivity

A quantity sample type that measures electrodermal activity.

`HKQuantity`TypeIdentifierForcedExpiratoryVolume1

A quantity sample type that measures the amount of air that can be forcibly exhaled from the lungs during the first second of a forced exhalation.

`HKQuantity`TypeIdentifierForcedVitalCapacity

A quantity sample type that measures the amount of air that can be forcibly exhaled from the lungs after taking the deepest breath possible.

`HKQuantity`TypeIdentifierInhalerUsage

A quantity sample type that measures the number of puffs the user takes from their inhaler.

`HKQuantity`TypeIdentifierInsulinDelivery

A quantity sample that measures the amount of insulin delivered.

`HKQuantity`TypeIdentifierNumberOfTimesFallen

A quantity sample type that measures the number of times the user has fallen.

`HKQuantity`TypeIdentifierPeakExpiratoryFlowRate

A quantity sample type that measures the user’s maximum flow rate generated during a forceful exhalation.

`HKQuantity`TypeIdentifierPeripheralPerfusionIndex

A quantity sample type that measures the user’s peripheral perfusion index.

`HKQuantity`TypeIdentifierDietaryBiotin

A quantity sample type that measures the amount of biotin (vitamin B7) consumed.

`HKQuantity`TypeIdentifierDietaryCaffeine

A quantity sample type that measures the amount of caffeine consumed.

`HKQuantity`TypeIdentifierDietaryCalcium

A quantity sample type that measures the amount of calcium consumed.

`HKQuantity`TypeIdentifierDietaryCarbohydrates

A quantity sample type that measures the amount of carbohydrates consumed.

`HKQuantity`TypeIdentifierDietaryChloride

A quantity sample type that measures the amount of chloride consumed.

`HKQuantity`TypeIdentifierDietaryCholesterol

A quantity sample type that measures the amount of cholesterol consumed.

`HKQuantity`TypeIdentifierDietaryChromium

A quantity sample type that measures the amount of chromium consumed.

`HKQuantity`TypeIdentifierDietaryCopper

A quantity sample type that measures the amount of copper consumed.

`HKQuantity`TypeIdentifierDietaryEnergyConsumed

A quantity sample type that measures the amount of energy consumed.

`HKQuantity`TypeIdentifierDietaryFatMonounsaturated

A quantity sample type that measures the amount of monounsaturated fat consumed.

`HKQuantity`TypeIdentifierDietaryFatPolyunsaturated

A quantity sample type that measures the amount of polyunsaturated fat consumed.

`HKQuantity`TypeIdentifierDietaryFatSaturated

A quantity sample type that measures the amount of saturated fat consumed.

`HKQuantity`TypeIdentifierDietaryFatTotal

A quantity sample type that measures the total amount of fat consumed.

`HKQuantity`TypeIdentifierDietaryFiber

A quantity sample type that measures the amount of fiber consumed.

`HKQuantity`TypeIdentifierDietaryFolate

A quantity sample type that measures the amount of folate (folic acid) consumed.

`HKQuantity`TypeIdentifierDietaryIodine

A quantity sample type that measures the amount of iodine consumed.

`HKQuantity`TypeIdentifierDietaryIron

A quantity sample type that measures the amount of iron consumed.

`HKQuantity`TypeIdentifierDietaryMagnesium

A quantity sample type that measures the amount of magnesium consumed.

`HKQuantity`TypeIdentifierDietaryManganese

A quantity sample type that measures the amount of manganese consumed.

`HKQuantity`TypeIdentifierDietaryMolybdenum

A quantity sample type that measures the amount of molybdenum consumed.

`HKQuantity`TypeIdentifierDietaryNiacin

A quantity sample type that measures the amount of niacin (vitamin B3) consumed.

`HKQuantity`TypeIdentifierDietaryPantothenicAcid

A quantity sample type that measures the amount of pantothenic acid (vitamin B5) consumed.

`HKQuantity`TypeIdentifierDietaryPhosphorus

A quantity sample type that measures the amount of phosphorus consumed.

`HKQuantity`TypeIdentifierDietaryPotassium

A quantity sample type that measures the amount of potassium consumed.

`HKQuantity`TypeIdentifierDietaryProtein

A quantity sample type that measures the amount of protein consumed.

`HKQuantity`TypeIdentifierDietaryRiboflavin

A quantity sample type that measures the amount of riboflavin (vitamin B2) consumed.

`HKQuantity`TypeIdentifierDietarySelenium

A quantity sample type that measures the amount of selenium consumed.

`HKQuantity`TypeIdentifierDietarySodium

A quantity sample type that measures the amount of sodium consumed.

`HKQuantity`TypeIdentifierDietarySugar

A quantity sample type that measures the amount of sugar consumed.

`HKQuantity`TypeIdentifierDietaryThiamin

A quantity sample type that measures the amount of thiamin (vitamin B1) consumed.

`HKQuantity`TypeIdentifierDietaryVitaminA

A quantity sample type that measures the amount of vitamin A consumed.

`HKQuantity`TypeIdentifierDietaryVitaminB12

A quantity sample type that measures the amount of cyanocobalamin (vitamin B12) consumed.

`HKQuantity`TypeIdentifierDietaryVitaminB6

A quantity sample type that measures the amount of pyridoxine (vitamin B6) consumed.

`HKQuantity`TypeIdentifierDietaryVitaminC

A quantity sample type that measures the amount of vitamin C consumed.

`HKQuantity`TypeIdentifierDietaryVitaminD

A quantity sample type that measures the amount of vitamin D consumed.

`HKQuantity`TypeIdentifierDietaryVitaminE

A quantity sample type that measures the amount of vitamin E consumed.

`HKQuantity`TypeIdentifierDietaryVitaminK

A quantity sample type that measures the amount of vitamin K consumed.

`HKQuantity`TypeIdentifierDietaryWater

A quantity sample type that measures the amount of water consumed.

`HKQuantity`TypeIdentifierDietaryZinc

A quantity sample type that measures the amount of zinc consumed.

`HKQuantity`TypeIdentifierStepCount

A quantity sample type that measures the number of steps the user has taken.

`HKQuantity`TypeIdentifierDistanceWalkingRunning

A quantity sample type that measures the distance the user has moved by walking or running.

`HKQuantity`TypeIdentifierDistanceCycling

A quantity sample type that measures the distance the user has moved by cycling.

`HKQuantity`TypeIdentifierPushCount

A quantity sample type that measures the number of pushes that the user has performed while using a wheelchair.

`HKQuantity`TypeIdentifierDistanceWheelchair

A quantity sample type that measures the distance the user has moved using a wheelchair.

`HKQuantity`TypeIdentifierSwimmingStrokeCount

A quantity sample type that measures the number of strokes performed while swimming.

`HKQuantity`TypeIdentifierDistanceSwimming

A quantity sample type that measures the distance the user has moved while swimming.

`HKQuantity`TypeIdentifierDistanceDownhillSnowSports

A quantity sample type that measures the distance the user has traveled while skiing or snowboarding.

`HKQuantity`TypeIdentifierBasalEnergyBurned

A quantity sample type that measures the resting energy burned by the user.

`HKQuantity`TypeIdentifierActiveEnergyBurned

A quantity sample type that measures the amount of active energy the user has burned.

`HKQuantity`TypeIdentifierFlightsClimbed

A quantity sample type that measures the number flights of stairs that the user has climbed.

`HKQuantity`TypeIdentifierNikeFuel

A quantity sample type that measures the number of NikeFuel points the user has earned.

`HKQuantity`TypeIdentifierAppleExerciseTime

A quantity sample type that measures the amount of time the user spent exercising.

`HKQuantity`TypeIdentifierAppleStandTime

A quantity sample type that measures the amount of time the user has spent standing.

`HKQuantity`TypeIdentifierBasalBodyTemperature

A quantity sample type that measures the user’s basal body temperature.

`HKQuantity`TypeIdentifierUVExposure

A quantity sample type that measures the user’s exposure to UV radiation.

`HKQuantity`TypeIdentifierEnvironmentalAudioExposure

A quantity sample type that measures audio exposure to sounds in the environment.

`HKQuantity`TypeIdentifierHeadphoneAudioExposure

A quantity sample type that measures audio exposure from headphones.

`+ quantity`TypeForIdentifier:

Returns the shared quantity type for the provided identifier.