File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ struct FeatureFlagConfiguration: Decodable {
18
18
let fiaspInsulinModelEnabled : Bool
19
19
let includeServicesInSettingsEnabled : Bool
20
20
let manualDoseEntryEnabled : Bool
21
+ let insulinDeliveryReservoirViewEnabled : Bool
21
22
let mockTherapySettingsEnabled : Bool
22
23
let nonlinearCarbModelEnabled : Bool
23
24
let observeHealthKitSamplesFromOtherApps : Bool
@@ -83,6 +84,13 @@ struct FeatureFlagConfiguration: Decodable {
83
84
self . manualDoseEntryEnabled = true
84
85
#endif
85
86
87
+ // Swift compiler config is inverse, since the default state is enabled.
88
+ #if INSULIN_DELIVERY_RESERVOIR_VIEW_DISABLED
89
+ self . insulinDeliveryReservoirViewEnabled = false
90
+ #else
91
+ self . insulinDeliveryReservoirViewEnabled = true
92
+ #endif
93
+
86
94
// Swift compiler config is inverse, since the default state is enabled.
87
95
#if MOCK_THERAPY_SETTINGS_ENABLED
88
96
self . mockTherapySettingsEnabled = true
Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ public final class InsulinDeliveryTableViewController: UITableViewController {
92
92
} else {
93
93
dataSourceSegmentedControl. removeSegment ( at: 2 , animated: false )
94
94
}
95
+ if !FeatureFlags. insulinDeliveryReservoirViewEnabled {
96
+ dataSourceSegmentedControl. removeSegment ( at: 1 , animated: false )
97
+ }
95
98
}
96
99
97
100
public override func viewWillAppear( _ animated: Bool ) {
You can’t perform that action at this time.
0 commit comments