HKWorkoutEventType.segment
A constant indicating a period of time of interest during a workout.
Declaration
case segmentDiscussion
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.