Contents

predicateForObjects(from:)

Returns a predicate that matches all the objects that were created by any of the provided source revisions.

Declaration

class func predicateForObjects(from sourceRevisions: Set<HKSourceRevision>) -> NSPredicate

Parameters

  • sourceRevisions:

    A set of source revisions that have saved data to the HealthKit store.

Return Value

A predicate that matches all the objects created by any of the provided source revisions.

Discussion

The following sample uses both the convenience method and a predicate format string to create equivalent predicates.

See Also

Creating object predicates