|
@@ -20,7 +20,7 @@ struct ChartLegendView: View {
|
|
|
|
|
|
|
|
List {
|
|
List {
|
|
|
VStack(alignment: .leading) {
|
|
VStack(alignment: .leading) {
|
|
|
- Text("Forecast").bold().padding(.bottom, 5)
|
|
|
|
|
|
|
+ Text("Forecasts").bold().padding(.bottom, 5).textCase(.uppercase)
|
|
|
Text(
|
|
Text(
|
|
|
"The oref algorithm determines insulin dosing based on a number of scenarios that it estimates with different types of forecasts."
|
|
"The oref algorithm determines insulin dosing based on a number of scenarios that it estimates with different types of forecasts."
|
|
|
)
|
|
)
|
|
@@ -34,87 +34,87 @@ struct ChartLegendView: View {
|
|
|
}
|
|
}
|
|
|
}.listRowBackground(Color.chart)
|
|
}.listRowBackground(Color.chart)
|
|
|
|
|
|
|
|
- Spacer().listRowBackground(Color.chart)
|
|
|
|
|
-
|
|
|
|
|
- Text("Other Elements & Shapes").bold().listRowBackground(Color.chart)
|
|
|
|
|
-
|
|
|
|
|
- DefinitionRow(
|
|
|
|
|
- term: "CGM Glucose Value",
|
|
|
|
|
- definition: Text(
|
|
|
|
|
- "Displays real-time glucose readings from a Continuous Glucose Monitor (CGM). Depending on your user interface settings, this may be displayed in a static (red, green, orange) or dynamic coloring scheme (full color spectrum)."
|
|
|
|
|
- ),
|
|
|
|
|
- color: Color.green,
|
|
|
|
|
- iconString: !state.settingsManager.settings.smoothGlucose ? "circle.fill" : "record.circle.fill"
|
|
|
|
|
- ).listRowBackground(Color.chart)
|
|
|
|
|
-
|
|
|
|
|
- DefinitionRow(
|
|
|
|
|
- term: "Manual Glucose Measurement",
|
|
|
|
|
- definition: Text("Manually entered blood glucose, such as a fingerstick test."),
|
|
|
|
|
- color: Color.red,
|
|
|
|
|
- iconString: "drop.fill"
|
|
|
|
|
- ).listRowBackground(Color.chart)
|
|
|
|
|
-
|
|
|
|
|
- DefinitionRow(
|
|
|
|
|
- term: "Bolus",
|
|
|
|
|
- definition: Text(
|
|
|
|
|
- "Shows an insulin dose, which can be a small automated dose (super-micro-bolus), a manually entered dose, or one given externally (e.g., a pen shot)."
|
|
|
|
|
- ),
|
|
|
|
|
- color: Color.insulin,
|
|
|
|
|
- iconString: "arrowtriangle.down.fill"
|
|
|
|
|
- ).listRowBackground(Color.chart)
|
|
|
|
|
-
|
|
|
|
|
- DefinitionRow(
|
|
|
|
|
- term: "Carb Entry",
|
|
|
|
|
- definition: Text("Tracks the carbohydrates you eat, entered to guide insulin dosing."),
|
|
|
|
|
- color: Color.orange,
|
|
|
|
|
- iconString: "arrowtriangle.down.fill",
|
|
|
|
|
- shouldRotateIcon: true
|
|
|
|
|
- ).listRowBackground(Color.chart)
|
|
|
|
|
-
|
|
|
|
|
- DefinitionRow(
|
|
|
|
|
- term: "Fat-Protein Carb Equivalent",
|
|
|
|
|
- definition: Text(
|
|
|
|
|
- "Represents carb equivalent for fat and protein, calculated using the Warsaw Method"
|
|
|
|
|
- ),
|
|
|
|
|
- color: Color.brown,
|
|
|
|
|
- iconString: "circle.fill"
|
|
|
|
|
- ).listRowBackground(Color.chart)
|
|
|
|
|
-
|
|
|
|
|
- DefinitionRow(
|
|
|
|
|
- term: "Override",
|
|
|
|
|
- definition: Text(
|
|
|
|
|
- "Indicates when an override is or was active, temporarily changing therapy settings (e.g., basal rate, insulin sensitivity, carb ratio, target glucose, or whether Trio can dose SMBs)."
|
|
|
|
|
- ),
|
|
|
|
|
- color: Color.purple,
|
|
|
|
|
- iconString: "button.horizontal.fill"
|
|
|
|
|
- ).listRowBackground(Color.chart)
|
|
|
|
|
-
|
|
|
|
|
- DefinitionRow(
|
|
|
|
|
- term: "Temporary Target",
|
|
|
|
|
- definition: Text(
|
|
|
|
|
- "Marks when a short-term temporary glucose target is or was active, (potentially) altering when or how much insulin is delivered."
|
|
|
|
|
- ),
|
|
|
|
|
- color: Color.green.opacity(0.4),
|
|
|
|
|
- iconString: "button.horizontal.fill"
|
|
|
|
|
- ).listRowBackground(Color.chart)
|
|
|
|
|
-
|
|
|
|
|
- DefinitionRow(
|
|
|
|
|
- term: "Past Insulin-on-Board (IOB)",
|
|
|
|
|
- definition: Text(
|
|
|
|
|
- "Shows the IOB value calculated by the algorithm at a specific time in the past. These values are snapshots and won’t change if insulin is added or removed after the fact."
|
|
|
|
|
- ),
|
|
|
|
|
- color: Color.darkerBlue.opacity(0.8),
|
|
|
|
|
- iconString: "line.diagonal"
|
|
|
|
|
- ).listRowBackground(Color.chart)
|
|
|
|
|
-
|
|
|
|
|
- DefinitionRow(
|
|
|
|
|
- term: "Past Carbs-on-Board (COB)",
|
|
|
|
|
- definition: Text(
|
|
|
|
|
- "Shows the COB value calculated by the algorithm at a specific time in the past. These values are snapshots and won’t change if carbs are added or removed after the fact."
|
|
|
|
|
- ),
|
|
|
|
|
- color: Color.orange.opacity(0.8),
|
|
|
|
|
- iconString: "line.diagonal"
|
|
|
|
|
- ).listRowBackground(Color.chart)
|
|
|
|
|
|
|
+ VStack(alignment: .leading) {
|
|
|
|
|
+ Text("Other Elements & Shapes").bold().padding(.bottom, 5).textCase(.uppercase)
|
|
|
|
|
+
|
|
|
|
|
+ DefinitionRow(
|
|
|
|
|
+ term: "CGM Glucose Value",
|
|
|
|
|
+ definition: Text(
|
|
|
|
|
+ "Displays real-time glucose readings from a Continuous Glucose Monitor (CGM). Depending on your user interface settings, this may be displayed in a static (red, green, orange) or dynamic coloring scheme (full color spectrum)."
|
|
|
|
|
+ ),
|
|
|
|
|
+ color: Color.green,
|
|
|
|
|
+ iconString: !state.settingsManager.settings.smoothGlucose ? "circle.fill" : "record.circle.fill"
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
|
|
+ DefinitionRow(
|
|
|
|
|
+ term: "Manual Glucose Measurement",
|
|
|
|
|
+ definition: Text("Manually entered blood glucose, such as a fingerstick test."),
|
|
|
|
|
+ color: Color.red,
|
|
|
|
|
+ iconString: "drop.fill"
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
|
|
+ DefinitionRow(
|
|
|
|
|
+ term: "Bolus",
|
|
|
|
|
+ definition: Text(
|
|
|
|
|
+ "Shows an insulin dose, which can be a small automated dose (super-micro-bolus), a manually entered dose, or one given externally (e.g., a pen shot)."
|
|
|
|
|
+ ),
|
|
|
|
|
+ color: Color.insulin,
|
|
|
|
|
+ iconString: "arrowtriangle.down.fill"
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
|
|
+ DefinitionRow(
|
|
|
|
|
+ term: "Carb Entry",
|
|
|
|
|
+ definition: Text("Tracks the carbohydrates you eat, entered to guide insulin dosing."),
|
|
|
|
|
+ color: Color.orange,
|
|
|
|
|
+ iconString: "arrowtriangle.down.fill",
|
|
|
|
|
+ shouldRotateIcon: true
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
|
|
+ DefinitionRow(
|
|
|
|
|
+ term: "Fat-Protein Carb Equivalent",
|
|
|
|
|
+ definition: Text(
|
|
|
|
|
+ "Represents carb equivalent for fat and protein, calculated using the Warsaw Method"
|
|
|
|
|
+ ),
|
|
|
|
|
+ color: Color.brown,
|
|
|
|
|
+ iconString: "circle.fill"
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
|
|
+ DefinitionRow(
|
|
|
|
|
+ term: "Override",
|
|
|
|
|
+ definition: Text(
|
|
|
|
|
+ "Indicates when an override is or was active, temporarily changing therapy settings (e.g., basal rate, insulin sensitivity, carb ratio, target glucose, or whether Trio can dose SMBs)."
|
|
|
|
|
+ ),
|
|
|
|
|
+ color: Color.purple,
|
|
|
|
|
+ iconString: "button.horizontal.fill"
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
|
|
+ DefinitionRow(
|
|
|
|
|
+ term: "Temporary Target",
|
|
|
|
|
+ definition: Text(
|
|
|
|
|
+ "Marks when a short-term temporary glucose target is or was active, (potentially) altering when or how much insulin is delivered."
|
|
|
|
|
+ ),
|
|
|
|
|
+ color: Color.green.opacity(0.4),
|
|
|
|
|
+ iconString: "button.horizontal.fill"
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
|
|
+ DefinitionRow(
|
|
|
|
|
+ term: "Past Insulin-on-Board (IOB)",
|
|
|
|
|
+ definition: Text(
|
|
|
|
|
+ "Shows the IOB value calculated by the algorithm at a specific time in the past. These values are snapshots and won’t change if insulin is added or removed after the fact."
|
|
|
|
|
+ ),
|
|
|
|
|
+ color: Color.darkerBlue.opacity(0.8),
|
|
|
|
|
+ iconString: "line.diagonal"
|
|
|
|
|
+ )
|
|
|
|
|
+
|
|
|
|
|
+ DefinitionRow(
|
|
|
|
|
+ term: "Past Carbs-on-Board (COB)",
|
|
|
|
|
+ definition: Text(
|
|
|
|
|
+ "Shows the COB value calculated by the algorithm at a specific time in the past. These values are snapshots and won’t change if carbs are added or removed after the fact."
|
|
|
|
|
+ ),
|
|
|
|
|
+ color: Color.orange.opacity(0.8),
|
|
|
|
|
+ iconString: "line.diagonal"
|
|
|
|
|
+ )
|
|
|
|
|
+ }.listRowBackground(Color.chart)
|
|
|
}
|
|
}
|
|
|
.navigationBarTitle("Chart Legend", displayMode: .inline)
|
|
.navigationBarTitle("Chart Legend", displayMode: .inline)
|
|
|
.padding(.trailing, 10)
|
|
.padding(.trailing, 10)
|