Type Method

kilocalorie()

Returns a HealthKit unit for measuring energy in kilocalories.

Declaration

class func kilocalorie() -> Self

Return Value

A HealthKit unit for measuring energy in kilocalories.

Discussion

The kilocalorie is used to measure food energy in many regions.

See Also

Constructing Energy Units

class func joule() -> Self

Returns a HealthKit unit for measuring energy in joules.

class func jouleUnit(with: HKMetricPrefix) -> Self

Returns a HealthKit unit for measuring energy, using joule units with the provided prefix.

class func calorie() -> Self

Returns a HealthKit unit for measuring energy in calories.

Deprecated
class func largeCalorie() -> Self

Returns a HealthKit unit for measuring energy in large calories (Cal).

class func smallCalorie() -> Self

Returns a HealthKit unit for measuring energy in small calories (cal).