Skip to content

Commit d76c009

Browse files
committed
[LOOP-4721] UI Updates for Loop Alert Management
1 parent ab9f89f commit d76c009

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Loop/Views/SettingsView.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,17 @@ public struct SettingsView: View {
111111
.actionSheet(item: $actionSheet) { actionSheet in
112112
switch actionSheet {
113113
case .cgmPicker:
114-
ActionSheet(
114+
return ActionSheet(
115115
title: Text("Add CGM", comment: "The title of the CGM chooser in settings"),
116116
buttons: cgmChoices
117117
)
118118
case .pumpPicker:
119-
ActionSheet(
119+
return ActionSheet(
120120
title: Text("Add Pump", comment: "The title of the pump chooser in settings"),
121121
buttons: pumpChoices
122122
)
123123
case .servicePicker:
124-
ActionSheet(
124+
return ActionSheet(
125125
title: Text("Add Service", comment: "The title of the add service action sheet in settings"),
126126
buttons: serviceChoices
127127
)
@@ -130,15 +130,15 @@ public struct SettingsView: View {
130130
.alert(item: $alert) { alert in
131131
switch alert {
132132
case .deleteCGMData:
133-
makeDeleteAlert(for: self.viewModel.cgmManagerSettingsViewModel)
133+
return makeDeleteAlert(for: self.viewModel.cgmManagerSettingsViewModel)
134134
case .deletePumpData:
135-
makeDeleteAlert(for: self.viewModel.pumpManagerSettingsViewModel)
135+
return makeDeleteAlert(for: self.viewModel.pumpManagerSettingsViewModel)
136136
}
137137
}
138138
.sheet(item: $sheet) { sheet in
139139
switch sheet {
140140
case .therapySettings:
141-
TherapySettingsView(
141+
return TherapySettingsView(
142142
mode: .settings,
143143
viewModel: TherapySettingsViewModel(
144144
therapySettings: viewModel.therapySettings(),
@@ -156,7 +156,7 @@ public struct SettingsView: View {
156156
.environment(\.guidanceColors, self.guidanceColors)
157157
.environment(\.insulinTintColor, self.insulinTintColor)
158158
case .favoriteFoods:
159-
FavoriteFoodsView()
159+
return FavoriteFoodsView()
160160
}
161161
}
162162
}

0 commit comments

Comments
 (0)