<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKWorkoutSessionState/ended",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@E@HKWorkoutSessionState@HKWorkoutSessionStateEnded"
  },
  "title" : "HKWorkoutSessionState.ended"
}
-->

# HKWorkoutSessionState.ended

The workout session has ended.

```
case ended
```

## Discussion

The watch can no longer run in the background. Its sensors return to normal, and it no longer generates workout data. You can’t restart or reuse the workout session.

## See Also

[`end()`](/documentation/HealthKit/HKWorkoutSession/end())

Ends the workout session.



---

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)