|
|
@@ -57,25 +57,6 @@ extension PumpConfig {
|
|
|
Spacer()
|
|
|
Button(
|
|
|
action: {
|
|
|
- hintLabel = "Pump Pairing to Trio"
|
|
|
- selectedVerboseHint =
|
|
|
- AnyView(
|
|
|
- VStack(alignment: .leading, spacing: 10) {
|
|
|
- Text(
|
|
|
- "Current Pump Models Supported:"
|
|
|
- )
|
|
|
- VStack(alignment: .leading) {
|
|
|
- Text("• Medtronic")
|
|
|
- Text("• Omnipod Eros")
|
|
|
- Text("• Omnipod Dash")
|
|
|
- Text("• Dana (RS/-i)")
|
|
|
- Text("• Pump Simulator")
|
|
|
- }
|
|
|
- Text(
|
|
|
- "Note: If using a pump simulator, you will not have continuous readings from the CGM in Trio. Using a pump simulator is only advisable for becoming familiar with the app user interface. It will not give you insight on how the algorithm will respond."
|
|
|
- )
|
|
|
- }
|
|
|
- )
|
|
|
shouldDisplayHint.toggle()
|
|
|
},
|
|
|
label: {
|
|
|
@@ -97,25 +78,7 @@ extension PumpConfig {
|
|
|
.navigationTitle("Insulin Pump")
|
|
|
.navigationBarTitleDisplayMode(.automatic)
|
|
|
.navigationBarItems(leading: displayClose ? Button("Close", action: state.hideModal) : nil)
|
|
|
- .sheet(isPresented: $shouldDisplayHint) {
|
|
|
- SettingInputHintView(
|
|
|
- hintDetent: $hintDetent,
|
|
|
- shouldDisplayHint: $shouldDisplayHint,
|
|
|
- hintLabel: hintLabel ?? "",
|
|
|
- hintText: selectedVerboseHint ?? AnyView(EmptyView()),
|
|
|
- sheetTitle: "Help"
|
|
|
- )
|
|
|
- }
|
|
|
- .confirmationDialog("Pump Model", isPresented: $showPumpSelection) {
|
|
|
- Button("Medtronic") { state.addPump(.minimed) }
|
|
|
- Button("Omnipod Eros") { state.addPump(.omnipod) }
|
|
|
- Button("Omnipod Dash") { state.addPump(.omnipodBLE) }
|
|
|
- Button("Dana(RS/-i)") { state.addPump(.dana) }
|
|
|
- Button("Pump Simulator") { state.addPump(.simulator) }
|
|
|
- } message: { Text("Select Pump Model") }
|
|
|
- }
|
|
|
- .sheet(isPresented: $state.setupPump) {
|
|
|
- NavigationView {
|
|
|
+ .sheet(isPresented: $state.setupPump) {
|
|
|
if let pumpManager = state.provider.apsManager.pumpManager {
|
|
|
PumpSettingsView(
|
|
|
pumpManager: pumpManager,
|
|
|
@@ -133,6 +96,38 @@ extension PumpConfig {
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
+ .sheet(isPresented: $shouldDisplayHint) {
|
|
|
+ SettingInputHintView(
|
|
|
+ hintDetent: $hintDetent,
|
|
|
+ shouldDisplayHint: $shouldDisplayHint,
|
|
|
+ hintLabel: "Pump Pairing to Trio",
|
|
|
+ hintText: AnyView(
|
|
|
+ VStack(alignment: .leading, spacing: 10) {
|
|
|
+ Text(
|
|
|
+ "Current Pump Models Supported:"
|
|
|
+ )
|
|
|
+ VStack(alignment: .leading) {
|
|
|
+ Text("• Medtronic")
|
|
|
+ Text("• Omnipod Eros")
|
|
|
+ Text("• Omnipod Dash")
|
|
|
+ Text("• Dana (RS/-i)")
|
|
|
+ Text("• Pump Simulator")
|
|
|
+ }
|
|
|
+ Text(
|
|
|
+ "Note: If using a pump simulator, you will not have continuous readings from the CGM in Trio. Using a pump simulator is only advisable for becoming familiar with the app user interface. It will not give you insight on how the algorithm will respond."
|
|
|
+ )
|
|
|
+ }
|
|
|
+ ),
|
|
|
+ sheetTitle: "Help"
|
|
|
+ )
|
|
|
+ }
|
|
|
+ .confirmationDialog("Pump Model", isPresented: $showPumpSelection) {
|
|
|
+ Button("Medtronic") { state.addPump(.minimed) }
|
|
|
+ Button("Omnipod Eros") { state.addPump(.omnipod) }
|
|
|
+ Button("Omnipod Dash") { state.addPump(.omnipodBLE) }
|
|
|
+ Button("Dana(RS/-i)") { state.addPump(.dana) }
|
|
|
+ Button("Pump Simulator") { state.addPump(.simulator) }
|
|
|
+ } message: { Text("Select Pump Model") }
|
|
|
}
|
|
|
}
|
|
|
}
|