---
title: workoutType()
framework: healthkit
role: symbol
role_heading: Type Method
path: healthkit/hkobjecttype/workouttype()
---

# workoutType()

Returns the shared HKWorkoutType object.

## Declaration

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

## Return Value

Return Value The shared HKWorkoutType instance.

## Discussion

Discussion This method returns an instance of the 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. In HealthKit, all workouts use the same workout type.
