Best way to get daily step count from Apple Health Kit

1.5k Views Asked by At

I am interested in obtaining the summary numbers of steps per day from Health Kit. Is there a way to do this without having to query for individual HKQuantitySamples and then summing up the data by day myself?

1

There are 1 best solutions below

0
On

Use HKStatisticsCollectionQuery (reference documentation here) to compute the total number of steps taken per day.