We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f5b24 commit f00c451Copy full SHA for f00c451
1 file changed
LoopFollow/Charts/BGChartModel.swift
@@ -537,11 +537,14 @@ final class BGChartModel: ObservableObject {
537
}
538
tempTargets = vc.tempTargetGraphData.map {
539
let target = $0.correctionRange.first.map { String($0) } ?? ""
540
+ // Temp targets render at the BG level they target (±5 mg/dL);
541
+ // only overrides live in the top strip.
542
+ let yCenter = Double($0.correctionRange.first ?? 0)
543
return BandRect(
544
start: Date(timeIntervalSince1970: $0.date),
545
end: Date(timeIntervalSince1970: $0.endDate),
- yBottom: yBottom,
- yTop: yTop,
546
+ yBottom: yCenter - 5,
547
+ yTop: yCenter + 5,
548
label: "Temp Target",
549
pillText: "Temp Target\n\(Localizer.toDisplayUnits(target))\n\(pillTimeString(for: Date(timeIntervalSince1970: $0.date)))"
550
)
0 commit comments