Returns a predicate for matching workouts based on the total distance traveled.
- iOS 8.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
The operator type to use when comparing the total distance.
The target distance.
A predicate for matching workouts based on the total distance traveled. This predicate works only on workouts.
Use this convenience method to create a predicate that matches against a workout’s total distance. The following sample uses both the convenience method and a predicate format string to create equivalent predicates.