predicates
An array of sample predicates that define the type of data that the query returns.
Declaration
var predicates: [HKSamplePredicate<Sample>] { get set }Discussion
To query for multiple types of data, provide a sample predicate for each type. If your HKSamplePredicate instances return different HKSample subclasses, use sample(type:predicate:) to create the sample predicates.