File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -111,17 +111,17 @@ public struct SettingsView: View {
111
111
. actionSheet ( item: $actionSheet) { actionSheet in
112
112
switch actionSheet {
113
113
case . cgmPicker:
114
- ActionSheet (
114
+ return ActionSheet (
115
115
title: Text ( " Add CGM " , comment: " The title of the CGM chooser in settings " ) ,
116
116
buttons: cgmChoices
117
117
)
118
118
case . pumpPicker:
119
- ActionSheet (
119
+ return ActionSheet (
120
120
title: Text ( " Add Pump " , comment: " The title of the pump chooser in settings " ) ,
121
121
buttons: pumpChoices
122
122
)
123
123
case . servicePicker:
124
- ActionSheet (
124
+ return ActionSheet (
125
125
title: Text ( " Add Service " , comment: " The title of the add service action sheet in settings " ) ,
126
126
buttons: serviceChoices
127
127
)
@@ -130,9 +130,9 @@ public struct SettingsView: View {
130
130
. alert ( item: $alert) { alert in
131
131
switch alert {
132
132
case . deleteCGMData:
133
- makeDeleteAlert ( for: self . viewModel. cgmManagerSettingsViewModel)
133
+ return makeDeleteAlert ( for: self . viewModel. cgmManagerSettingsViewModel)
134
134
case . deletePumpData:
135
- makeDeleteAlert ( for: self . viewModel. pumpManagerSettingsViewModel)
135
+ return makeDeleteAlert ( for: self . viewModel. pumpManagerSettingsViewModel)
136
136
}
137
137
}
138
138
. sheet ( item: $sheet) { sheet in
You can’t perform that action at this time.
0 commit comments