MissedReadingEditor.swift 873 B

12345678910111213141516171819202122232425262728293031
  1. // LoopFollow
  2. // MissedReadingEditor.swift
  3. import SwiftUI
  4. struct MissedReadingEditor: View {
  5. @Binding var alarm: Alarm
  6. var body: some View {
  7. Group {
  8. InfoBanner(text: "This warns you if the glucose monitor stops sending readings for too long..", alarmType: alarm.type)
  9. AlarmGeneralSection(alarm: $alarm)
  10. AlarmStepperSection(
  11. header: "Reading Delay",
  12. footer: "Choose how long the app should wait before alerting.",
  13. title: "No reading for",
  14. range: 11 ... 121,
  15. step: 5,
  16. unitLabel: alarm.type.snoozeTimeUnit.label,
  17. value: $alarm.threshold
  18. )
  19. AlarmActiveSection(alarm: $alarm)
  20. AlarmAudioSection(alarm: $alarm)
  21. AlarmSnoozeSection(alarm: $alarm)
  22. }
  23. }
  24. }