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


Adding Samples to a Workout

Create associated samples that add details to a workout.

class HKWorkout

A workout sample that stores information about a single physical activity.

class HKWorkoutBuilder

A builder object that incrementally constructs a workout.

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.