From 8c4479ceb017847fab233f5d8aef39001e240ed5 Mon Sep 17 00:00:00 2001 From: Paul Schmiedmayer Date: Thu, 23 Jan 2025 17:51:41 -0800 Subject: [PATCH] Added heart rate to Spezi HealthKit --- CS342ExampleApplication/CS342ExampleApplicationDelegate.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CS342ExampleApplication/CS342ExampleApplicationDelegate.swift b/CS342ExampleApplication/CS342ExampleApplicationDelegate.swift index 363e838..35466d0 100644 --- a/CS342ExampleApplication/CS342ExampleApplicationDelegate.swift +++ b/CS342ExampleApplication/CS342ExampleApplicationDelegate.swift @@ -83,6 +83,10 @@ class CS342ExampleApplicationDelegate: SpeziAppDelegate { private var healthKit: HealthKit { HealthKit { + CollectSample( + HKQuantityType(.heartRate), + deliverySetting: .anchorQuery(.automatic) + ) CollectSample( HKQuantityType(.stepCount), deliverySetting: .anchorQuery(.automatic)