<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKQuantitySeriesSampleBuilder/init(healthStore:quantityType:startDate:device:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKQuantitySeriesSampleBuilder(im)initWithHealthStore:quantityType:startDate:device:"
  },
  "title" : "init(healthStore:quantityType:startDate:device:)"
}
-->

# init(healthStore:quantityType:startDate:device:)

Creates a new quantity series builder.

```
init(healthStore: HKHealthStore, quantityType: HKQuantityType, startDate: Date, device: HKDevice?)
```

## Parameters

`healthStore`

The HealthKit store.

`quantityType`

The sample’s quantity type.

`startDate`

The sample’s start date.

`device`

An object representing the device that provided the data. Pass `nil` if the app is generating its own data.

---

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)