statistics(for:)
Returns the statistics calculated for matching samples added to the workout.
Declaration
func statistics(for quantityType: HKQuantityType) -> HKStatistics?Returns the statistics calculated for matching samples added to the workout.
func statistics(for quantityType: HKQuantityType) -> HKStatistics?