---
title: "seriesType(forIdentifier:)"
framework: healthkit
role: symbol
role_heading: Type Method
path: "healthkit/hkobjecttype/seriestype(foridentifier:)"
---

# seriesType(forIdentifier:)

Returns the shared series type for the provided identifier.

## Declaration

```swift
class func seriesType(forIdentifier identifier: String) -> HKSeriesType?
```

## Parameters

- `identifier`: A series type identifier. In iOS 11 and watchOS 4, there is only one series type identifier: doc://com.apple.healthkit/documentation/HealthKit/HKWorkoutRouteTypeIdentifier.

## Return Value

Return Value The shared HKSeriesType instance based on the provided identifier.

## Discussion

Discussion This method returns an instance of the HKSeriesType concrete subclass. HealthKit uses series types to represent samples that store a series of items. You can’t directly instantiate these samples; instead, use a HKSeriesBuilder subclass to create them. Use series types to ask  for permission to read series data from the HealthKit store.

## See Also

### Related Documentation

- [workoutRoute()](healthkit/hkseriestype/workoutroute().md)
- [HKWorkoutRoute](healthkit/hkworkoutroute.md)
- [HKWorkoutRouteBuilder](healthkit/hkworkoutroutebuilder.md)
