Skip to content

Commit 8c4479c

Browse files
committed
Added heart rate to Spezi HealthKit
1 parent 6a76a15 commit 8c4479c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CS342ExampleApplication/CS342ExampleApplicationDelegate.swift

Lines changed: 4 additions & 0 deletions
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)