Skip to content

Commit 395ed90

Browse files
Added heart rate to Spezi HealthKit (#2)
# Added heart rate to Spezi HealthKit ## ♻️ Current situation & Problem - We didn't collect heart rate. ## ⚙️ Release Notes - Added heart rate to Spezi HealthKit ## 📚 Documentation - We didn't add any new documentation. ## ✅ Testing - No tests added. ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md).
1 parent 6a76a15 commit 395ed90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CS342ExampleApplication/CS342ExampleApplicationDelegate.swift

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ class CS342ExampleApplicationDelegate: SpeziAppDelegate {
8383

8484
private var healthKit: HealthKit {
8585
HealthKit {
86+
CollectSample(
87+
HKQuantityType(.heartRate),
88+
deliverySetting: .anchorQuery(.automatic)
89+
)
8690
CollectSample(
8791
HKQuantityType(.stepCount),
8892
deliverySetting: .anchorQuery(.automatic)

0 commit comments

Comments
 (0)