|
@@ -1,5 +1,11 @@
|
|
|
import SwiftUI
|
|
import SwiftUI
|
|
|
|
|
|
|
|
|
|
+/// Represents the navigation direction in the onboarding flow
|
|
|
|
|
+enum OnboardingNavigationDirection {
|
|
|
|
|
+ case forward
|
|
|
|
|
+ case backward
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/// Represents the different steps in the onboarding process.
|
|
/// Represents the different steps in the onboarding process.
|
|
|
enum OnboardingStep: Int, CaseIterable, Identifiable, Equatable {
|
|
enum OnboardingStep: Int, CaseIterable, Identifiable, Equatable {
|
|
|
case welcome
|
|
case welcome
|
|
@@ -7,7 +13,7 @@ enum OnboardingStep: Int, CaseIterable, Identifiable, Equatable {
|
|
|
case nightscout
|
|
case nightscout
|
|
|
case unitSelection
|
|
case unitSelection
|
|
|
case glucoseTarget
|
|
case glucoseTarget
|
|
|
- case basalProfile
|
|
|
|
|
|
|
+ case basalRates
|
|
|
case carbRatio
|
|
case carbRatio
|
|
|
case insulinSensitivity
|
|
case insulinSensitivity
|
|
|
case deliveryLimits
|
|
case deliveryLimits
|
|
@@ -36,13 +42,13 @@ enum OnboardingStep: Int, CaseIterable, Identifiable, Equatable {
|
|
|
case .unitSelection:
|
|
case .unitSelection:
|
|
|
return String(localized: "Units & Pump")
|
|
return String(localized: "Units & Pump")
|
|
|
case .glucoseTarget:
|
|
case .glucoseTarget:
|
|
|
- return String(localized: "Glucose Target")
|
|
|
|
|
- case .basalProfile:
|
|
|
|
|
- return String(localized: "Basal Profile")
|
|
|
|
|
|
|
+ return String(localized: "Glucose Targets")
|
|
|
|
|
+ case .basalRates:
|
|
|
|
|
+ return String(localized: "Basal Rates")
|
|
|
case .carbRatio:
|
|
case .carbRatio:
|
|
|
- return String(localized: "Carbohydrate Ratio")
|
|
|
|
|
|
|
+ return String(localized: "Carb Ratios")
|
|
|
case .insulinSensitivity:
|
|
case .insulinSensitivity:
|
|
|
- return String(localized: "Insulin Sensitivity")
|
|
|
|
|
|
|
+ return String(localized: "Insulin Sensitivities")
|
|
|
case .deliveryLimits:
|
|
case .deliveryLimits:
|
|
|
return String(localized: "Delivery Limits")
|
|
return String(localized: "Delivery Limits")
|
|
|
case .completed:
|
|
case .completed:
|
|
@@ -73,7 +79,7 @@ enum OnboardingStep: Int, CaseIterable, Identifiable, Equatable {
|
|
|
return String(
|
|
return String(
|
|
|
localized: "Your glucose target is the blood glucose level you aim to maintain. Trio will use this to calculate insulin doses and provide recommendations."
|
|
localized: "Your glucose target is the blood glucose level you aim to maintain. Trio will use this to calculate insulin doses and provide recommendations."
|
|
|
)
|
|
)
|
|
|
- case .basalProfile:
|
|
|
|
|
|
|
+ case .basalRates:
|
|
|
return String(
|
|
return String(
|
|
|
localized: "Your basal profile represents the amount of background insulin you need throughout the day. This helps Trio calculate your insulin needs."
|
|
localized: "Your basal profile represents the amount of background insulin you need throughout the day. This helps Trio calculate your insulin needs."
|
|
|
)
|
|
)
|
|
@@ -87,7 +93,7 @@ enum OnboardingStep: Int, CaseIterable, Identifiable, Equatable {
|
|
|
)
|
|
)
|
|
|
case .deliveryLimits:
|
|
case .deliveryLimits:
|
|
|
return String(
|
|
return String(
|
|
|
- localized: "Trio offers various delivery limits which represent the maximum amount of insulin it can deliver at a time. This helps ensure safe and effective experience."
|
|
|
|
|
|
|
+ localized: "Trio includes several safety limits for insulin delivery and carbohydrate entry, helping ensure a safe and effective experience."
|
|
|
)
|
|
)
|
|
|
case .completed:
|
|
case .completed:
|
|
|
return String(
|
|
return String(
|
|
@@ -109,7 +115,7 @@ enum OnboardingStep: Int, CaseIterable, Identifiable, Equatable {
|
|
|
return "numbers.rectangle"
|
|
return "numbers.rectangle"
|
|
|
case .glucoseTarget:
|
|
case .glucoseTarget:
|
|
|
return "target"
|
|
return "target"
|
|
|
- case .basalProfile:
|
|
|
|
|
|
|
+ case .basalRates:
|
|
|
return "chart.xyaxis.line"
|
|
return "chart.xyaxis.line"
|
|
|
case .carbRatio:
|
|
case .carbRatio:
|
|
|
return "fork.knife"
|
|
return "fork.knife"
|
|
@@ -150,7 +156,7 @@ enum OnboardingStep: Int, CaseIterable, Identifiable, Equatable {
|
|
|
return Color.blue
|
|
return Color.blue
|
|
|
case .glucoseTarget:
|
|
case .glucoseTarget:
|
|
|
return Color.green
|
|
return Color.green
|
|
|
- case .basalProfile:
|
|
|
|
|
|
|
+ case .basalRates:
|
|
|
return Color.purple
|
|
return Color.purple
|
|
|
case .carbRatio:
|
|
case .carbRatio:
|
|
|
return Color.orange
|
|
return Color.orange
|