Returns a predicate that matches workout samples based on the number of strokes while swimming.
Mac Catalyst 13.0+Beta
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.
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.