Returns a predicate for matching workouts based on the type of activity.
- iOS 8.0+
- watchOS 2.0+
The type of activity. For a list of valid workout activities, see
A predicate for matching workouts based on the type of activity.
Use this convenience method to create a predicate that matches workouts based on their activity. The following sample uses both the convenience method and a predicate format string to create equivalent predicates.