<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WorkoutKit",
  "identifier" : "/documentation/WorkoutKit/WorkoutGoal",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "WorkoutKit"
    ],
    "preciseIdentifier" : "s:10WorkoutKit0A4GoalO"
  },
  "title" : "WorkoutGoal"
}
-->

# WorkoutGoal

A value that specifies the goal for a workout.

```
enum WorkoutGoal
```

## Topics

### Determining workout goals

[`case open`](/documentation/WorkoutKit/WorkoutGoal/open)

An open workout with no set goal.

[`case distance(Double, UnitLength)`](/documentation/WorkoutKit/WorkoutGoal/distance(_:_:))

A goal based on distance traveled during the workout.

[`case energy(Double, UnitEnergy)`](/documentation/WorkoutKit/WorkoutGoal/energy(_:_:))

A goal based on the amount of energy burned during the workout.

[`case time(Double, UnitDuration)`](/documentation/WorkoutKit/WorkoutGoal/time(_:_:))

A goal based on the amount of time that has elapsed during the workout.

### Comparing workout goals

### Enumeration Cases

[`case poolSwimDistanceWithTime(Measurement<UnitLength>, Measurement<UnitDuration>)`](/documentation/WorkoutKit/WorkoutGoal/poolSwimDistanceWithTime(_:_:))

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)