A type that identifies samples that store information about a workout.


class HKWorkoutType : HKSampleType


The HKWorkoutType class is a concrete subclass of the HKObjectType class. To create a workout type instances, use the workoutType() convenience method.

All workouts use the same workout type instance.


Inherits From

Conforms To

See Also


Using Workout Samples

Record a physical activity using workout samples.

class HKWorkout

A workout sample stores information about a single physical activity.

let HKWorkoutTypeIdentifier: String

The workout type identifier.

enum HKWorkoutActivityType

The type of activity performed during a workout.

class HKWorkoutEvent

An object representing an important event during a workout.

Beta Software

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.

Learn more about using Apple's beta software