Contents

HKWorkoutEventType.segment

A constant indicating a period of time of interest during a workout.

Declaration

case segment

Discussion

Use segments to highlight important time periods during a workout. For example, you could use different segments to mark when a runner is going up or downhill. Similarly, when swimming, you can use segments to group consecutive laps with the same style of stroke.

Unlike laps, segments can freely overlap.

See Also

Events