@@ -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,15 +130,15 @@ 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
139
139
switch sheet {
140
140
case . therapySettings:
141
- TherapySettingsView (
141
+ return TherapySettingsView (
142
142
mode: . settings,
143
143
viewModel: TherapySettingsViewModel (
144
144
therapySettings: viewModel. therapySettings ( ) ,
@@ -156,7 +156,7 @@ public struct SettingsView: View {
156
156
. environment ( \. guidanceColors, self . guidanceColors)
157
157
. environment ( \. insulinTintColor, self . insulinTintColor)
158
158
case . favoriteFoods:
159
- FavoriteFoodsView ( )
159
+ return FavoriteFoodsView ( )
160
160
}
161
161
}
162
162
}
0 commit comments