|
@@ -176,7 +176,7 @@ extension Stat {
|
|
|
|
|
|
|
|
Picker("Duration", selection: $state.selectedIntervalForInsulinStats) {
|
|
Picker("Duration", selection: $state.selectedIntervalForInsulinStats) {
|
|
|
ForEach(StateModel.StatsTimeInterval.allCases) { timeInterval in
|
|
ForEach(StateModel.StatsTimeInterval.allCases) { timeInterval in
|
|
|
- Text(timeInterval.rawValue).tag(timeInterval)
|
|
|
|
|
|
|
+ Text(timeInterval.displayName).tag(timeInterval)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.pickerStyle(.segmented)
|
|
.pickerStyle(.segmented)
|
|
@@ -316,7 +316,7 @@ extension Stat {
|
|
|
|
|
|
|
|
Picker("Duration", selection: $state.selectedIntervalForMealStats) {
|
|
Picker("Duration", selection: $state.selectedIntervalForMealStats) {
|
|
|
ForEach(StateModel.StatsTimeInterval.allCases, id: \.self) { timeInterval in
|
|
ForEach(StateModel.StatsTimeInterval.allCases, id: \.self) { timeInterval in
|
|
|
- Text(timeInterval.rawValue)
|
|
|
|
|
|
|
+ Text(timeInterval.displayName)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.pickerStyle(.segmented)
|
|
.pickerStyle(.segmented)
|