<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKObjectType/workoutType()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKObjectType(cm)workoutType"
  },
  "title" : "workoutType()"
}
-->

# workoutType()

Returns the shared [`HKWorkoutType`](/documentation/HealthKit/HKWorkoutType) object.

```
class func workoutType() -> HKWorkoutType
```

## Return Value

The shared [`HKWorkoutType`](/documentation/HealthKit/HKWorkoutType) instance.

## Discussion

This method returns an instance of the [`HKWorkoutType`](/documentation/HealthKit/HKWorkoutType) concrete subclass. HealthKit uses workout types to create samples that store information about individual workouts. Use workout type instances to create workout objects that you can save in the HealthKit store.  For more information, see [`HKWorkoutType`](/documentation/HealthKit/HKWorkoutType).

In HealthKit, all workouts use the same workout type.

---

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)