<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKWorkoutEventType/lap",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@E@HKWorkoutEventType@HKWorkoutEventTypeLap"
  },
  "title" : "HKWorkoutEventType.lap"
}
-->

# HKWorkoutEventType.lap

A constant indicating a lap.

```
case lap
```

## Discussion

Lap events partition a workout into segments of equal distance (for example, laps around a track or laps in a pool). The lap’s [`dateInterval`](/documentation/HealthKit/HKWorkoutEvent/dateInterval) property should mark the start and end of the lap. Lap events can’t overlap.

When you receive lap events from the HealthKit store, examine the event’s [`dateInterval`](/documentation/HealthKit/HKWorkoutEvent/dateInterval) property to interpret the lap correctly:

**Zero-duration intervals.** Older lap events (created before iOS 11 and watchOS 4) have a zero-duration date interval that marks the end of the lap. Each lap is assumed to start when the previous lap ends, and laps fill the entire workout completely.****

**Nonzero-duration intervals.** Newer lap events use the date interval to mark the start and the duration of the lap. These events have a nonzero duration, and they do not need to fill the workout; however, you should ideally mark any rest periods between laps using [`HKWorkoutEventType.pause`](/documentation/HealthKit/HKWorkoutEventType/pause) and [`HKWorkoutEventType.resume`](/documentation/HealthKit/HKWorkoutEventType/resume) events.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)