We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 066aa1a commit 87afa58Copy full SHA for 87afa58
IOS/Model/HealthManager.swift
@@ -767,9 +767,9 @@ class HealthManager {
767
768
/// @brief Adds the weight reading to HealthKit.
769
func saveWeightIntoHealthStore(weight: Double, unitSystem: UnitSystem) {
770
- var units = HKUnit.inch()
+ var units = HKUnit.pound()
771
if unitSystem == UNIT_SYSTEM_METRIC {
772
- units = HKUnit.meterUnit(with: HKMetricPrefix.centi)
+ units = HKUnit.gramUnit(with: HKMetricPrefix.kilo)
773
}
774
let now = Date()
775
let weightQuantity = HKQuantity.init(unit: units, doubleValue: weight)
0 commit comments