sumQuantity()
Returns the sum of all the samples that match the query.
Declaration
func sumQuantity() -> HKQuantity?Mentioned in
Return Value
If the cumulativeSum option was set, this method returns a quantity object containing the sum of all the samples matching the query; otherwise, it returns nil.