| 12345678910111213141516171819202122232425262728293031323334353637 |
- // LoopFollow
- // SensorAgeAlarmEditor.swift
- // Created by Jonas Björkert on 2025-05-17.
- import SwiftUI
- struct SensorAgeAlarmEditor: View {
- @Binding var alarm: Alarm
- var body: some View {
- Form {
- InfoBanner(
- text: "Warn me this many hours before the sensor’s 10-day change-over.",
- alarmType: alarm.type
- )
- AlarmGeneralSection(alarm: $alarm)
- AlarmStepperSection(
- header: "Early Reminder",
- footer: "Number of hours before the 10-day mark that the alert " +
- "will fire.",
- title: "Reminder Time",
- range: 1 ... 24,
- step: 1,
- unitLabel: "hours",
- value: $alarm.threshold
- )
- AlarmActiveSection(alarm: $alarm)
- AlarmAudioSection(alarm: $alarm)
- AlarmSnoozeSection(alarm: $alarm)
- }
- .navigationTitle(alarm.type.rawValue)
- }
- }
|