RecBolusAlarmEditor.swift 923 B

1234567891011121314151617181920212223242526272829303132333435
  1. // LoopFollow
  2. // RecBolusAlarmEditor.swift
  3. import SwiftUI
  4. struct RecBolusAlarmEditor: View {
  5. @Binding var alarm: Alarm
  6. var body: some View {
  7. Group {
  8. InfoBanner(
  9. text: "Alerts when the recommended bolus equals or exceeds the " +
  10. "threshold you set below.",
  11. alarmType: alarm.type
  12. )
  13. AlarmGeneralSection(alarm: $alarm)
  14. AlarmStepperSection(
  15. header: "Threshold",
  16. footer: "Alert when recommended bolus is at or above this value.",
  17. title: "At or Above",
  18. range: 0.1 ... 50,
  19. step: 0.1,
  20. unitLabel: "Units",
  21. value: $alarm.threshold
  22. )
  23. AlarmActiveSection(alarm: $alarm)
  24. AlarmAudioSection(alarm: $alarm)
  25. AlarmSnoozeSection(alarm: $alarm)
  26. }
  27. }
  28. }