result(for:)
Runs a one-shot query and asynchronously returns a snapshot of the current matching results.
Declaration
func result(for healthStore: HKHealthStore) async throws -> HKStatistics?Parameters
- healthStore:
The access point for HealthKit data.