Returns a predicate that matches workout samples based on the number of strokes while swimming.
- iOS 10.0+
- watchOS 3.0+
The operator to use when comparing the sample to the target number of flights climbed.
A quantity representing the target stroke count.
A predicate that matches workouts based on the number of strokes while swimming.
This convenience method creates a predicate that compares the number of swimming strokes during a workout with a target number. The following sample uses the convenience method and a predicate format string to create equivalent predicates.