We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af3f2ff commit 8aed294Copy full SHA for 8aed294
Foundation Lab/Health/Services/HealthKitService.swift
@@ -138,7 +138,7 @@ actor HealthKitService {
138
do {
139
let samples = try await descriptor.result(for: healthStore)
140
if let sample = samples.first {
141
- let unit = HKUnit(from: "count/min") ?? HKUnit.count().unitDivided(by: .minute())
+ let unit = HKUnit.count().unitDivided(by: .minute())
142
return sample.quantity.doubleValue(for: unit)
143
}
144
} catch {
0 commit comments