@@ -60,10 +60,12 @@ public class CGMStatusHUDViewModel {
60
60
if isManualGlucoseCurrent {
61
61
// If there is a current manual glucose, it displays the current status highlight icon
62
62
setManualGlucoseTrendIconOverride ( )
63
- } else if let localizedMessage = storedStatusHighlight? . localizedMessage,
64
- let statusState = storedStatusHighlight? . state
63
+ }
64
+
65
+ if let localizedMessage = storedStatusHighlight? . localizedMessage. replacingOccurrences ( of: " \n " , with: " " ) ,
66
+ let statusStateMessage = storedStatusHighlight? . state. localizedDescription
65
67
{
66
- accessibilityString = localizedMessage + " , " + statusState . localizedDescription
68
+ accessibilityString = localizedMessage + " , " + statusStateMessage
67
69
}
68
70
}
69
71
}
@@ -156,16 +158,19 @@ public class CGMStatusHUDViewModel {
156
158
if isManualGlucoseCurrent {
157
159
// a manual glucose value presents any status highlight icon instead of a trend icon
158
160
setManualGlucoseTrendIconOverride ( )
159
- if let statusState = storedStatusHighlight? . state {
160
- accessibilityStrings. append ( statusState. localizedDescription)
161
- }
162
161
} else if let trend = glucoseDisplay? . trendType, glucoseValueCurrent {
163
162
self . trend = trend
164
163
glucoseTrendTintColor = glucoseDisplay? . glucoseRangeCategory? . trendColor ?? . glucoseTintColor
165
164
accessibilityStrings. append ( trend. localizedDescription)
166
165
} else {
167
166
glucoseTrendTintColor = . glucoseTintColor
168
167
}
168
+
169
+ if let statusStateMessage = storedStatusHighlight? . state. localizedDescription,
170
+ let localizedMessage = storedStatusHighlight? . localizedMessage. replacingOccurrences ( of: " \n " , with: " " )
171
+ {
172
+ accessibilityStrings. append ( localizedMessage + " , " + statusStateMessage)
173
+ }
169
174
170
175
unitsString = unit. localizedShortUnitString
171
176
accessibilityString = accessibilityStrings. joined ( separator: " , " )
0 commit comments