<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKSeriesSample",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKSeriesSample"
  },
  "title" : "HKSeriesSample"
}
-->

# HKSeriesSample

An abstract base class that defines samples that contain a series of items.

```
class HKSeriesSample
```

## Overview

Never instantiate [`HKSeriesSample`](/documentation/HealthKit/HKSeriesSample) objects directly. Instead, user one of the concrete subclasses (for example, the [`HKWorkoutRoute`](/documentation/HealthKit/HKWorkoutRoute) class).

## Topics

### Accessing the series

[`var count: Int`](/documentation/HealthKit/HKSeriesSample/count)

The number of items in the series.

## Relationships

### Conforms To

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

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

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

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

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

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

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherited By

[`HKHeartbeatSeriesSample`](/documentation/HealthKit/HKHeartbeatSeriesSample)

[`HKWorkoutRoute`](/documentation/HealthKit/HKWorkoutRoute)

### Inherits From

[`HKSample`](/documentation/HealthKit/HKSample)

---

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)