| 12345678910111213141516171819202122232425262728293031323334 |
- // LoopFollow
- // PumpBatteryAlarmEditor.swift
- import SwiftUI
- struct PumpBatteryAlarmEditor: View {
- @Binding var alarm: Alarm
- var body: some View {
- Group {
- InfoBanner(
- text: "This warns you when the pump's battery gets low, based on the percentage you choose.",
- alarmType: alarm.type
- )
- AlarmGeneralSection(alarm: $alarm)
- AlarmStepperSection(
- header: "Pump Battery Level",
- footer: "This alerts you when the pump battery drops to or below this level.",
- title: "At or Below",
- range: 0 ... 100,
- step: 5,
- unitLabel: "%",
- value: $alarm.threshold
- )
- AlarmActiveSection(alarm: $alarm)
- AlarmAudioSection(alarm: $alarm)
- AlarmSnoozeSection(alarm: $alarm)
- }
- }
- }
|