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

# init(healthStore:workoutConfiguration:)

Creates a new data source based on the provided workout configuration.

## Declaration

```swift
init(healthStore: HKHealthStore, workoutConfiguration configuration: HKWorkoutConfiguration?)
```

## See Also

### Creating a live data source

- [typesToCollect](healthkit/hkliveworkoutdatasource/typestocollect.md)
