|
|
@@ -22,9 +22,10 @@ struct MissedBolusAlarmEditor: View {
|
|
|
header: "Delay",
|
|
|
footer: "Minutes to wait after the carb entry before checking " +
|
|
|
"for a bolus.",
|
|
|
- title: "Minutes",
|
|
|
+ title: "Delay",
|
|
|
range: 5 ... 60,
|
|
|
step: 5,
|
|
|
+ unitLabel: "min",
|
|
|
value: Binding(
|
|
|
get: { Double(alarm.monitoringWindow ?? 15) },
|
|
|
set: { alarm.monitoringWindow = Int($0) }
|
|
|
@@ -33,11 +34,12 @@ struct MissedBolusAlarmEditor: View {
|
|
|
|
|
|
AlarmStepperSection(
|
|
|
header: "Pre-bolus",
|
|
|
- footer: "Count boluses given up to this many minutes *before* " +
|
|
|
+ footer: "Count boluses given up to this many minutes before " +
|
|
|
"the carb entry as valid.",
|
|
|
- title: "Minutes",
|
|
|
+ title: "Pre-Bolus Time",
|
|
|
range: 0 ... 45,
|
|
|
step: 5,
|
|
|
+ unitLabel: "min",
|
|
|
value: Binding(
|
|
|
get: { Double(alarm.predictiveMinutes ?? 15) },
|
|
|
set: { alarm.predictiveMinutes = Int($0) }
|
|
|
@@ -46,10 +48,11 @@ struct MissedBolusAlarmEditor: View {
|
|
|
|
|
|
AlarmStepperSection(
|
|
|
header: "Ignore small boluses",
|
|
|
- footer: "Boluses ≤ this size are ignored.",
|
|
|
- title: "Units",
|
|
|
+ footer: "Boluses below this size are ignored.",
|
|
|
+ title: "Ignore below",
|
|
|
range: 0.05 ... 2,
|
|
|
step: 0.05,
|
|
|
+ unitLabel: "Units",
|
|
|
value: Binding(
|
|
|
get: { alarm.delta ?? 0.1 },
|
|
|
set: { alarm.delta = $0 }
|
|
|
@@ -58,10 +61,11 @@ struct MissedBolusAlarmEditor: View {
|
|
|
|
|
|
AlarmStepperSection(
|
|
|
header: "Ignore small carbs",
|
|
|
- footer: "Carb entries ≤ this amount will not trigger the alarm.",
|
|
|
- title: "Grams",
|
|
|
+ footer: "Carb entries below this amount will not trigger the alarm.",
|
|
|
+ title: "Below",
|
|
|
range: 0 ... 15,
|
|
|
step: 1,
|
|
|
+ unitLabel: "Grams",
|
|
|
value: Binding(
|
|
|
get: { alarm.threshold ?? 4 },
|
|
|
set: { alarm.threshold = $0 }
|
|
|
@@ -70,9 +74,9 @@ struct MissedBolusAlarmEditor: View {
|
|
|
|
|
|
AlarmBGLimitSection(
|
|
|
header: "Ignore low BG",
|
|
|
- footer: "Only alert if the current BG is *above* this value.",
|
|
|
+ footer: "Only alert if the current BG is above this value.",
|
|
|
toggleText: "Use BG Limit",
|
|
|
- pickerTitle: "Alert when BG ≥",
|
|
|
+ pickerTitle: "Above",
|
|
|
range: 40 ... 140,
|
|
|
value: $alarm.aboveBG
|
|
|
)
|