Instance Property

orderByQuantitySampleStartDate

A Boolean value that determines whether the query groups the results based on the quantity sample’s start date.

Declaration

var orderByQuantitySampleStartDate: Bool { get set }

Discussion

By default the query returns all the quantities in ascending order based on their start date. If you set this property to true, HealthKit first sorts the matching HKQuantitySample objects by their startDate parameter. Then, for each sample, it returns all the quantity objects in ascending order. If the sample objects overlap, then the quantities may not appear in ascending order when switching from one sample to the next.

See Also

Creating a Series Query

var includeSample: Bool

A Boolean value that determines whether the query should return the series sample.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software