From 6e6c70670d05d187f4955896342fb2283b64fc59 Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Tue, 2 Dec 2025 12:19:19 -0600 Subject: [PATCH] Fix truncated units on watch display of presets --- WatchApp Extension/Views/PresetDetailView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/WatchApp Extension/Views/PresetDetailView.swift b/WatchApp Extension/Views/PresetDetailView.swift index 0a3354f6c..879a40bbb 100644 --- a/WatchApp Extension/Views/PresetDetailView.swift +++ b/WatchApp Extension/Views/PresetDetailView.swift @@ -11,6 +11,8 @@ import LoopKit import LoopCore struct PresetDetailView: View { + @Environment(\.sizeClass) private var sizeClass + @Environment(\.glucoseDisplayUnit) private var glucoseDisplayUnit let preset: SelectablePreset @@ -48,7 +50,7 @@ struct PresetDetailView: View { var text = Text(percent).bold() if let correctionRange = preset.correctionRange { - text = text + Text(" • ") + text = text + Text(sizeClass.isLarge ? " • " : "\n") text = text + (Text(glucoseFormatter.string(from: correctionRange.lowerBound, includeUnit: false)!) + Text("-") + Text(glucoseFormatter.string(from: correctionRange.upperBound, includeUnit: false)!)).bold() @@ -63,6 +65,8 @@ struct PresetDetailView: View { presetTitle presetDuration descriptionText + .multilineTextAlignment(.center) + .fixedSize(horizontal: false, vertical: true) .padding(.top, 8) .padding(.bottom, 10) }