Skip to content

Commit

Permalink
VIT-7905: Update Example app to include ECG, HR alerts & AFib Burden
Browse files Browse the repository at this point in the history
  • Loading branch information
andersio committed Dec 9, 2024
1 parent e804ade commit 93c9d90
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions Examples/iOS/HealthKit Tab/HealthKitExample.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ struct HealthKitExample: View {
Section(header: Text("Permissions")) {
VStack(spacing: 25) {

makePermissionRow("Mindful Session", resources: [.vitals(.mindfulSession)], writeResources: [.mindfulSession], permissions: $permissions)

makePermissionRow("Water", resources: [.nutrition(.water)], writeResources: [.water], permissions: $permissions)

makePermissionRow("Caffeine", resources: [.nutrition(.caffeine)], writeResources: [.caffeine], permissions: $permissions)


makePermissionRow("Profile", resources: [.profile], permissions: $permissions)

makePermissionRow("Body", resources: [.body], permissions: $permissions)
Expand All @@ -34,20 +27,32 @@ struct HealthKitExample: View {
makePermissionRow("Activity", resources: [.activity], permissions: $permissions)

makePermissionRow("Workout", resources: [.workout], permissions: $permissions)


makePermissionRow("Menstrual Cycle", resources: [.menstrualCycle], permissions: $permissions)

makePermissionRow("Meal", resources: [.meal], permissions: $permissions)

makePermissionRow("HeartRate", resources: [.vitals(.heartRate)], permissions: $permissions)

makePermissionRow("Weight", resources: [.individual(.weight)], permissions: $permissions)
makePermissionRow("Electrocardiogram", resources: [.electrocardiogram], permissions: $permissions)

makePermissionRow("Blood Pressure", resources: [.vitals(.bloodPressure)], permissions: $permissions)
makePermissionRow("AFib Burden", resources: [.afibBurden], permissions: $permissions)

makePermissionRow("Meal", resources: [.meal], permissions: $permissions)
makePermissionRow("Heart Rate Alert", resources: [.heartRateAlert], permissions: $permissions)

makePermissionRow("Menstrual Cycle", resources: [.menstrualCycle], permissions: $permissions)
makePermissionRow("Respiratory Rate", resources: [.vitals(.respiratoryRate)], permissions: $permissions)

makePermissionRow("Blood Pressure", resources: [.vitals(.bloodPressure)], permissions: $permissions)

makePermissionRow("Temperature", resources: [.vitals(.temperature)], permissions: $permissions)

makePermissionRow("Respiratory Rate", resources: [.vitals(.respiratoryRate)], permissions: $permissions)
makePermissionRow("Weight", resources: [.individual(.weight)], permissions: $permissions)

makePermissionRow("Mindful Session", resources: [.vitals(.mindfulSession)], writeResources: [.mindfulSession], permissions: $permissions)

makePermissionRow("Water", resources: [.nutrition(.water)], writeResources: [.water], permissions: $permissions)

makePermissionRow("Caffeine", resources: [.nutrition(.caffeine)], writeResources: [.caffeine], permissions: $permissions)

}
.buttonStyle(PlainButtonStyle())
Expand Down

0 comments on commit 93c9d90

Please sign in to comment.