---
title: "init(healthStore:)"
framework: healthkit
role: symbol
role_heading: Initializer
path: "healthkit/hkattachmentstore/init(healthstore:)"
---

# init(healthStore:)

Creates an attachment store for the provided HealthKit store.

## Declaration

```swift
init(healthStore: HKHealthStore)
```

## Parameters

- `healthStore`: The interface to the HealthKit store.
